Sha256: 8690080d24ed94cbe61101a51f8556a7378bd68ae2370a7af9d61ab959cf34de

Contents?: true

Size: 1.43 KB

Versions: 65

Compression:

Stored size: 1.43 KB

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. [showterm example](http://showterm.io/cc7ddb7b23bb73e784d7d)
* With arguments specifying which exercises you want to generate tests for.  
  e.g. `./exercise-gen.pl6 hello-world leap`. [showterm example](http://showterm.io/54d5cf196eb45a0e40640)
* With the argument `--all` to run the generator for all exercises.  
  i.e `./exercise-gen.pl6 --all`

You will either need to create a symlink to or clone the
[problem-specifications](https://github.com/exercism/problem-specifications) repository
into the root directory of this repository.
The generator will retrieve data from the `.meta/exercise-data.yaml` file within
each exercise directory, and use the contained information to generate
test files using `templates/test.mustache`, and Example.pm6 files using
`templates/module.mustache`. If it finds a `canonical-data.json` file in
`problem-specifications` for the exercise in question it will be included.

Example of a yaml file:
```yaml
exercise: MyExercise
version: 1
plan: 2
modules:
  - use: Data::Dump
  - use: Foo::Bar
methods: 'foo bar'
tests: |-
  ok my-subroutine, 'Perl 6 code here';
  pass;

unit: module
examples:
  base: |-
    sub my-subroutine is export {
      True;
    }

    class MyClass is export {
    }
```

You must have `Template::Mustache` and `YAML::Parser::LibYAML` to run `exercise-gen.pl6`.

Version data entries

65 entries across 65 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/perl6/bin/README.md
trackler-2.2.1.138 tracks/perl6/bin/README.md
trackler-2.2.1.137 tracks/perl6/bin/README.md
trackler-2.2.1.136 tracks/perl6/bin/README.md
trackler-2.2.1.135 tracks/perl6/bin/README.md
trackler-2.2.1.134 tracks/perl6/bin/README.md
trackler-2.2.1.133 tracks/perl6/bin/README.md
trackler-2.2.1.132 tracks/perl6/bin/README.md
trackler-2.2.1.131 tracks/perl6/bin/README.md
trackler-2.2.1.130 tracks/perl6/bin/README.md
trackler-2.2.1.129 tracks/perl6/bin/README.md
trackler-2.2.1.128 tracks/perl6/bin/README.md
trackler-2.2.1.127 tracks/perl6/bin/README.md
trackler-2.2.1.126 tracks/perl6/bin/README.md
trackler-2.2.1.125 tracks/perl6/bin/README.md
trackler-2.2.1.124 tracks/perl6/bin/README.md
trackler-2.2.1.123 tracks/perl6/bin/README.md
trackler-2.2.1.122 tracks/perl6/bin/README.md
trackler-2.2.1.121 tracks/perl6/bin/README.md
trackler-2.2.1.120 tracks/perl6/bin/README.md