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

Version Path
trackler-2.1.0.9 tracks/perl6/bin/README.md
trackler-2.1.0.8 tracks/perl6/bin/README.md
trackler-2.1.0.7 tracks/perl6/bin/README.md
trackler-2.1.0.6 tracks/perl6/bin/README.md
trackler-2.1.0.5 tracks/perl6/bin/README.md
trackler-2.1.0.4 tracks/perl6/bin/README.md
trackler-2.1.0.3 tracks/perl6/bin/README.md
trackler-2.1.0.2 tracks/perl6/bin/README.md
trackler-2.1.0.1 tracks/perl6/bin/README.md
trackler-2.1.0.0 tracks/perl6/bin/README.md
trackler-2.0.8.55 tracks/perl6/bin/README.md
trackler-2.0.8.54 tracks/perl6/bin/README.md
trackler-2.0.8.53 tracks/perl6/bin/README.md
trackler-2.0.8.52 tracks/perl6/bin/README.md
trackler-2.0.8.51 tracks/perl6/bin/README.md
trackler-2.0.8.50 tracks/perl6/bin/README.md
trackler-2.0.8.49 tracks/perl6/bin/README.md
trackler-2.0.8.48 tracks/perl6/bin/README.md
trackler-2.0.8.47 tracks/perl6/bin/README.md
trackler-2.0.8.46 tracks/perl6/bin/README.md