Skip to content

Commit

Permalink
Bump to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Janiczek committed Oct 11, 2022
1 parent cbe3596 commit b510d2c
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
28 changes: 15 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
## Releases

| Version | Notes |
| ------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**2.0.0**](https://github.com/elm-explorations/test/tree/2.0.0) | Reimplements fuzzing+shrinking, adds fuzzer distribution reporting. Most notably readds `Fuzz.andThen`. See ["Changes in 2.0.0"](#changes-in-200) |
| [**1.2.2**](https://github.com/elm-explorations/test/tree/1.2.2) | Fixes a crash in `Test.Html` when the HTML contains nested `Html.Lazy` nodes. [#78](https://github.com/elm-explorations/test/issues/78) |
| [**1.2.1**](https://github.com/elm-explorations/test/tree/1.2.1) | Many small documentation fixes. Improve error messages when failing to simulate an event. |
| [**1.2.0**](https://github.com/elm-explorations/test/tree/1.2.0) | Add HTML tests. [#41](https://github.com/elm-explorations/test/pull/41) |
| Version | Notes |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**2.0.1**](https://github.com/elm-explorations/test/tree/2.0.1) | Documentation fixes |
| [**2.0.0**](https://github.com/elm-explorations/test/tree/2.0.0) | Reimplements fuzzing+shrinking, adds fuzzer distribution reporting. Most notably readds `Fuzz.andThen`. See ["Changes in 2.0.0"](#changes-in-200) |
| [**1.2.2**](https://github.com/elm-explorations/test/tree/1.2.2) | Fixes a crash in `Test.Html` when the HTML contains nested `Html.Lazy` nodes. [#78](https://github.com/elm-explorations/test/issues/78) |
| [**1.2.1**](https://github.com/elm-explorations/test/tree/1.2.1) | Many small documentation fixes. Improve error messages when failing to simulate an event. |
| [**1.2.0**](https://github.com/elm-explorations/test/tree/1.2.0) | Add HTML tests. [#41](https://github.com/elm-explorations/test/pull/41) |
| [**1.0.0**](https://github.com/elm-explorations/test/tree/1.0.0) | Update for Elm 0.19. Remove `Fuzz.andThen`, `Fuzz.conditional`, and `Test.Runner.getFailure`. Fail on equating floats to encourage checks with tolerance. `Test.Runner.fuzz` now returns a `Result`. |
| renamed from **elm-community/elm-test** (below) to **elm-explorations/test** (above) | |
| [**4.0.0**](https://github.com/elm-community/elm-test/tree/4.0.0) | Add `only`, `skip`, `todo`; change `Fuzz.frequency` to fail rather than crash on bad input, disallow tests with blank or duplicate descriptions. |
| [**3.1.0**](https://github.com/elm-community/elm-test/tree/3.1.0) | Add `Expect.all` |
| [**3.0.0**](https://github.com/elm-community/elm-test/tree/3.0.0) | Update for Elm 0.18; switch the argument order of `Fuzz.andMap`. |
| [**2.1.0**](https://github.com/elm-community/elm-test/tree/2.1.0) | Switch to rose trees for `Fuzz.andThen`, other API additions. |
| [**2.0.0**](https://github.com/elm-community/elm-test/tree/2.0.0) | Scratch-rewrite to project-fuzzball |
| [**1.0.0**](https://github.com/elm-community/elm-test/tree/1.0.0) | ElmTest initial release |
| renamed from **elm-community/elm-test** (below) to **elm-explorations/test** (above) | |
| [**4.0.0**](https://github.com/elm-community/elm-test/tree/4.0.0) | Add `only`, `skip`, `todo`; change `Fuzz.frequency` to fail rather than crash on bad input, disallow tests with blank or duplicate descriptions. |
| [**3.1.0**](https://github.com/elm-community/elm-test/tree/3.1.0) | Add `Expect.all` |
| [**3.0.0**](https://github.com/elm-community/elm-test/tree/3.0.0) | Update for Elm 0.18; switch the argument order of `Fuzz.andMap`. |
| [**2.1.0**](https://github.com/elm-community/elm-test/tree/2.1.0) | Switch to rose trees for `Fuzz.andThen`, other API additions. |
| [**2.0.0**](https://github.com/elm-community/elm-test/tree/2.0.0) | Scratch-rewrite to project-fuzzball |
| [**1.0.0**](https://github.com/elm-community/elm-test/tree/1.0.0) | ElmTest initial release |

## Changes in 2.0.0

The changes can be grouped into these categories:
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ suite =

This code uses a few common functions:

* [`describe`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.0/Test/#describe) to add a description string to a list of tests
* [`test`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.0/Test/#test) to write a unit test
* [`Expect`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.0/Expect/) to determine if a test should pass or fail
* [`fuzz`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.0/Test/#fuzz) to run a function that produces a test several times with randomly-generated inputs
* [`describe`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.1/Test/#describe) to add a description string to a list of tests
* [`test`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.1/Test/#test) to write a unit test
* [`Expect`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.1/Expect/) to determine if a test should pass or fail
* [`fuzz`](https://package.elm-lang.org/packages/elm-explorations/test/2.0.1/Test/#fuzz) to run a function that produces a test several times with randomly-generated inputs

Check out [a large real-world test suite](https://github.com/rtfeldman/elm-css/tree/master/tests) for more.

Tip! Run [elm-test init](https://github.com/rtfeldman/node-test-runner#init) to generate some example tests to get you started.

### Running tests

This package lets you define tests ([Test](https://package.elm-lang.org/packages/elm-explorations/test/2.0.0/Test/#Test) values).
This package lets you define tests ([Test](https://package.elm-lang.org/packages/elm-explorations/test/2.0.1/Test/#Test) values).

To execute your tests and see if they pass you need a program that can consume your tests, run them and report the results.

Expand Down
2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "elm-explorations/test",
"summary": "Write unit and fuzz tests for Elm code.",
"license": "BSD-3-Clause",
"version": "2.0.0",
"version": "2.0.1",
"exposed-modules": [
"Test",
"Test.Runner",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"test": "bash tests/run-tests.sh",
"test:random": "RANDOMIZED=1 bash tests/run-tests.sh",
"format": "elm-format --validate src tests/src benchmarks",
"install-local": "rm -rf ~/.elm/0.19.1/packages/elm-explorations/test/2.0.0/ && mkdir -p ~/.elm/0.19.1/packages/elm-explorations/test/2.0.0/ && cp -r ./{src,elm.json,LICENSE,README.md} ~/.elm/0.19.1/packages/elm-explorations/test/2.0.0/"
"install-local": "rm -rf ~/.elm/0.19.1/packages/elm-explorations/test/2.0.1/ && mkdir -p ~/.elm/0.19.1/packages/elm-explorations/test/2.0.1/ && cp -r ./{src,elm.json,LICENSE,README.md} ~/.elm/0.19.1/packages/elm-explorations/test/2.0.1/"
},
"author": "Richard Feldman",
"license": "BSD-3-Clause"
Expand Down
2 changes: 1 addition & 1 deletion tests/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"elm/virtual-dom": "1.0.2",
"elm-explorations/linear-algebra": "1.0.3",
"elm-explorations/markdown": "1.0.0",
"elm-explorations/test": "2.0.0",
"elm-explorations/test": "2.0.1",
"elm-explorations/webgl": "1.1.2",
"jinjor/elm-diff": "1.0.6"
},
Expand Down

0 comments on commit b510d2c

Please sign in to comment.