View Source mix criterion.gen.features (Criterion v0.1.6)

This Mix task scans the project for tests written using the Criterion module and generates corresponding feature files in Gherkin syntax.

Usage

mix criterion.gen.features --dir <directory>

Options

  • --dir - specify the directory to read test files from. default is test
  • --file - to generate feature files for a list of test files
  • --output - specify the directory to generate feature files in. default is test/features

The task will create the specified directory (default is features) and generate a .feature file for each test file in your project, converting the Criterion tests into Gherkin syntax.

Summary

Functions

Callback implementation for Mix.Task.run/1.

Functions

Callback implementation for Mix.Task.run/1.