Sha256: 73f5c8d3436107c8364cf24aa15f1817f72f0ba1108e40cfc84e534c7dcf5830

Contents?: true

Size: 1.21 KB

Versions: 193

Compression:

Stored size: 1.21 KB

Contents

The `exercise-gen.pl` 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.pl hello-world leap`.
* With the argument `--all` to run the generator for all exercises.  
  i.e `./exercise-gen.pl --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 an `example.yaml` file within
each exercise directory, and use the contained information to generate
test files using `templates/test.mustache`, and Example.pm 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
subs: 'my_subroutine'
tests: |-
  ok my_subroutine, 'Perl 5 code here';
  pass;

example: |-
  sub my_subroutine {
    1;
  }
```
Run `cpanm --installdeps .` to install the required modules in `cpanfile`.

Version data entries

193 entries across 193 versions & 1 rubygems

Version Path
trackler-2.2.1.119 tracks/perl5/bin/README.md
trackler-2.2.1.118 tracks/perl5/bin/README.md
trackler-2.2.1.117 tracks/perl5/bin/README.md
trackler-2.2.1.116 tracks/perl5/bin/README.md
trackler-2.2.1.115 tracks/perl5/bin/README.md
trackler-2.2.1.114 tracks/perl5/bin/README.md
trackler-2.2.1.113 tracks/perl5/bin/README.md
trackler-2.2.1.111 tracks/perl5/bin/README.md
trackler-2.2.1.110 tracks/perl5/bin/README.md
trackler-2.2.1.109 tracks/perl5/bin/README.md
trackler-2.2.1.108 tracks/perl5/bin/README.md
trackler-2.2.1.107 tracks/perl5/bin/README.md
trackler-2.2.1.106 tracks/perl5/bin/README.md
trackler-2.2.1.105 tracks/perl5/bin/README.md
trackler-2.2.1.104 tracks/perl5/bin/README.md
trackler-2.2.1.103 tracks/perl5/bin/README.md
trackler-2.2.1.102 tracks/perl5/bin/README.md
trackler-2.2.1.101 tracks/perl5/bin/README.md
trackler-2.2.1.100 tracks/perl5/bin/README.md
trackler-2.2.1.99 tracks/perl5/bin/README.md