Sha256: 2f62ec569c7db73b18f33bacb5b7553e32c4ac186e688c1291c8b2a18e377cbd

Contents?: true

Size: 1.15 KB

Versions: 382

Compression:

Stored size: 1.15 KB

Contents

## Running Tests

When you are in the directory for an exercise, you should see two subdirectories:

* `src` contains your solution to the exercise
* `spec` contains the tests to run for the exercise

If you're in the right directory (i.e. the one containing `src` and `spec`), you can run the tests for that exercise by running `crystal spec`:

```bash
$ pwd
/Users/johndoe/Code/exercism/crystal/hello-world

$ ls
GETTING_STARTED.md README.md          spec               src

$ crystal spec
```

This will run all of the test files in the `spec` directory.

In each test file, all but the first test have been skipped.

Once you get a test passing, you can unskip the next one by changing `pending` to `it`.

## Crystal Format

Before submitting, it's recommended that you run `crystal tool format` on your solution.

You can format everything in your current directory with:

```bash
$ crystal tool format ./
```

Or you can selectively format files with:

```bash
$ crystal tool format ./<path>/<to>/<file>
```

## Submitting Your Solution

Be sure to submit the source file in the `src` directory when submitting your solution:

```bash
$ exercism submit src/<exercise>.cr
```

Version data entries

382 entries across 382 versions & 1 rubygems

Version Path
trackler-2.0.6.40 tracks/crystal/docs/TESTS.md
trackler-2.0.6.39 tracks/crystal/docs/TESTS.md
trackler-2.0.6.38 tracks/crystal/docs/TESTS.md
trackler-2.0.6.37 tracks/crystal/docs/TESTS.md
trackler-2.0.6.36 tracks/crystal/docs/TESTS.md
trackler-2.0.6.35 tracks/crystal/docs/TESTS.md
trackler-2.0.6.34 tracks/crystal/docs/TESTS.md
trackler-2.0.6.33 tracks/crystal/docs/TESTS.md
trackler-2.0.6.32 tracks/crystal/docs/TESTS.md
trackler-2.0.6.31 tracks/crystal/docs/TESTS.md
trackler-2.0.6.30 tracks/crystal/docs/TESTS.md
trackler-2.0.6.29 tracks/crystal/docs/TESTS.md
trackler-2.0.6.28 tracks/crystal/docs/TESTS.md
trackler-2.0.6.27 tracks/crystal/docs/TESTS.md
trackler-2.0.6.26 tracks/crystal/docs/TESTS.md
trackler-2.0.6.25 tracks/crystal/docs/TESTS.md
trackler-2.0.6.24 tracks/crystal/docs/TESTS.md
trackler-2.0.6.23 tracks/crystal/docs/TESTS.md
trackler-2.0.6.22 tracks/crystal/docs/TESTS.md
trackler-2.0.6.21 tracks/crystal/docs/TESTS.md