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.2.1.180 tracks/crystal/docs/TESTS.md
trackler-2.2.1.179 tracks/crystal/docs/TESTS.md
trackler-2.2.1.178 tracks/crystal/docs/TESTS.md
trackler-2.2.1.177 tracks/crystal/docs/TESTS.md
trackler-2.2.1.176 tracks/crystal/docs/TESTS.md
trackler-2.2.1.175 tracks/crystal/docs/TESTS.md
trackler-2.2.1.174 tracks/crystal/docs/TESTS.md
trackler-2.2.1.173 tracks/crystal/docs/TESTS.md
trackler-2.2.1.172 tracks/crystal/docs/TESTS.md
trackler-2.2.1.171 tracks/crystal/docs/TESTS.md
trackler-2.2.1.170 tracks/crystal/docs/TESTS.md
trackler-2.2.1.169 tracks/crystal/docs/TESTS.md
trackler-2.2.1.167 tracks/crystal/docs/TESTS.md
trackler-2.2.1.166 tracks/crystal/docs/TESTS.md
trackler-2.2.1.165 tracks/crystal/docs/TESTS.md
trackler-2.2.1.164 tracks/crystal/docs/TESTS.md
trackler-2.2.1.163 tracks/crystal/docs/TESTS.md
trackler-2.2.1.162 tracks/crystal/docs/TESTS.md
trackler-2.2.1.161 tracks/crystal/docs/TESTS.md
trackler-2.2.1.160 tracks/crystal/docs/TESTS.md