Sha256: 5aef3e1023e0199807cdb139245337ba3dc4aedea9426720108993b5cca81716

Contents?: true

Size: 1.58 KB

Versions: 148

Compression:

Stored size: 1.58 KB

Contents

The Elm exercise test suites may be run from the exercise directory.

```bash
$ cd exercism/project/directory/elm/hello-world
$ npm install  # only required the first time you start an exercise
$ npm test
```

## Hints and tips

### Watch for changes

Automatically run tests again when you save changes:

```bash
$ npm run watch
```

### Coding the exercise

The README.md for each exercise gives a general description, but the Elm test program will be very specific. Open the test program and give it a quick look - if it seems like cheating, do it anyway. Look for helpful comments, test data, and just the names of the test functions. Try running the test command before you have written anything and see if the error messages give you an idea of where to start.

Your first goal it to get something to compile, even though it fails tests. For this, you should "stub" functions. That means leave the body empty, except for whatever it must return. Write something like `myFunc param = 0` or whatever it takes just to get it to compile. Sometimes to figure out function types you will have to go back to the test program and read in more detail. Once you have figured out all the required function signatures, the test program will complain that `0` is the wrong answer. Now start filling in function bodies.

### Fixing

It will often be helpful to focus on the first failing test. Fix that one, repeat until no errors. Compile errors and warnings will produce lots of helpful output.

### Cleaning up your code

Consider running [`elm-format`](https://github.com/avh4/elm-format) on your code before submitting it.

Version data entries

148 entries across 148 versions & 1 rubygems

Version Path
trackler-2.2.1.78 tracks/elm/docs/TESTS.md
trackler-2.2.1.77 tracks/elm/docs/TESTS.md
trackler-2.2.1.76 tracks/elm/docs/TESTS.md
trackler-2.2.1.75 tracks/elm/docs/TESTS.md
trackler-2.2.1.74 tracks/elm/docs/TESTS.md
trackler-2.2.1.73 tracks/elm/docs/TESTS.md
trackler-2.2.1.72 tracks/elm/docs/TESTS.md
trackler-2.2.1.71 tracks/elm/docs/TESTS.md
trackler-2.2.1.70 tracks/elm/docs/TESTS.md
trackler-2.2.1.69 tracks/elm/docs/TESTS.md
trackler-2.2.1.68 tracks/elm/docs/TESTS.md
trackler-2.2.1.67 tracks/elm/docs/TESTS.md
trackler-2.2.1.66 tracks/elm/docs/TESTS.md
trackler-2.2.1.65 tracks/elm/docs/TESTS.md
trackler-2.2.1.64 tracks/elm/docs/TESTS.md
trackler-2.2.1.63 tracks/elm/docs/TESTS.md
trackler-2.2.1.62 tracks/elm/docs/TESTS.md
trackler-2.2.1.61 tracks/elm/docs/TESTS.md
trackler-2.2.1.60 tracks/elm/docs/TESTS.md
trackler-2.2.1.59 tracks/elm/docs/TESTS.md