Link to fuzz test docs and Fuzzer docs Move part9 to be part12 Update part11 Update 12, and some other Mains Rearrange things, drop 2 modules Add a new part12 Fix READMEs Move some things up a directory Update part11 Use ! [] Update parts7-9 Fix part12g Swap part11 and part12 Fix readmes for part11 and part12 Add HtmlRunner to part8 Update part8 and part9 READMEs rm part10/test
52 lines
1.1 KiB
Markdown
52 lines
1.1 KiB
Markdown
Part 8
|
|
======
|
|
|
|
The instructor will paste notes from the lesson, including code examples from
|
|
Q&A, in [this document](https://docs.google.com/document/d/1ApuSOk9DP0YsQrxhW7-WE8UOEAV4PPnLDDeqUOL2o5k/edit?usp=sharing).
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
elm-package install
|
|
```
|
|
|
|
(Answer `y` at the prompt. In rare cases a known issue can cause the download
|
|
to fail; in that case, just run `elm-package install` again.)
|
|
|
|
## Building
|
|
|
|
```bash
|
|
elm-live Main.elm --open --output=elm.js
|
|
```
|
|
|
|
## Running Tests
|
|
|
|
First do this:
|
|
|
|
```bash
|
|
cd test
|
|
elm-package install
|
|
```
|
|
|
|
Then do either (or both!) of the following:
|
|
|
|
#### Running tests on the command line
|
|
|
|
```bash
|
|
elm-test NodeRunner.elm
|
|
```
|
|
|
|
#### Running tests in a browser
|
|
|
|
```bash
|
|
elm-reactor
|
|
```
|
|
|
|
Then visit [localhost:8000](http://localhost:8000) and choose `Html.elm`.
|
|
|
|
## References
|
|
|
|
* [Using Elm packages](https://github.com/elm-lang/elm-package/blob/master/README.md#basic-usage)
|
|
* [elm-test documentation](http://package.elm-lang.org/packages/project-fuzzball/test/latest)
|
|
* [`(<|)` documentation](http://package.elm-lang.org/packages/elm-lang/core/4.0.0/Basics#<|)
|