tracks/crystal/README.md in trackler-2.0.0.5 vs tracks/crystal/README.md in trackler-2.0.0.6

- old
+ new

@@ -16,9 +16,34 @@ Run single assignments with: ```bash $ make test-assignment ASSIGNMENT=test-folder-name ``` +## The Test Generator + +### Creating a New Generator + +Navigate to `src/generator/exercises` and create a new generator file (i.e. `hello_world.cr`). + +This file should contain 2 classes: +* An exercise generator which must inherit from the ExerciseGenerator class. +* A test case class which inherits from ExerciseTestCase. + +The x-common repo must reside at the same level as the developer's crystal directory, and must contain a canonical-data.json file for the given exercise. + +### Running the Generator + +From within the xcrystal directory: +```bash +$ crystal src/generator/generate.cr hello-world +``` + +Or build a binary: +```bash +$ make build_generator +$ bin/generate hello-world +``` + ## Contributing Guide Please see the [contributing guide](https://github.com/exercism/x-api/blob/master/CONTRIBUTING.md#the-exercise-data) ## License