mix-phxtest v0.1.0 Phxtest View Source

Mix tasks for running specific tests via mix test (ex_unit) and mix watch (extension) fast.

Link to this section Summary

Functions

Create the test/watch path with the given parameters

Generate a test/watch command with the given parameters

Run the mix command

Show helpful usage information from README

Link to this section Functions

Link to this function create_test_path(type, name, line \\ nil) View Source

Create the test/watch path with the given parameters

This utilizes all private functions for generating what you would usually have to type in your shell manually

Link to this function generate_command(command, type, name, line) View Source

Generate a test/watch command with the given parameters

This implementation also catches the minimum param count (2)

Link to this function run_command(command, params) View Source

Run the mix command.

This is offloaded into a separate module, since both, the test and watch command essentially do the same but need separate files

Link to this function show_usage_information() View Source

Show helpful usage information from README