Sha256: c47bacca12ae0bf97172c0bbe12acd4dff481024220630e48c6fb4cde4ccc981
Contents?: true
Size: 958 Bytes
Versions: 27
Compression:
Stored size: 958 Bytes
Contents
The `exercise-gen.pl6` file can be used in the following ways: * From within the directory of the exercise you wish to generate a test for. * With arguments specifying which exercises you want to generate tests for. e.g. `./exercise-gen.pl6 hello-world leap` * With the argument `--all` to run the generator for all exercises. i.e `./exercise-gen.pl6 --all` The generator will retrieve data from an `example.yaml` file within each exercise directory, and use the contained information to generate test files using `templates/test.mustache`. If it finds a `canonical-data.json` file in `x-common` for the exercise in question it will be included. Example of a yaml file: ```yaml exercise: MyExercise version: 1 plan: 10 modules: - use: Data::Dump - use: Foo::Bar imports: 'MyClass &my-subroutine' methods: 'foo bar' tests: | ok True, 'Perl 6 code here'; pass; ``` You must have `Template::Mustache` and `YAMLish` to run `exercise-gen.pl6`.
Version data entries
27 entries across 27 versions & 1 rubygems