Skip to content

Commit

Permalink
Bump to 2.2.0 (Fuzz.filterMap)
Browse files Browse the repository at this point in the history
  • Loading branch information
Janiczek committed Jan 20, 2024
1 parent 5122599 commit d7b5710
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

| Version | Notes |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [**2.2.0**](https://github.com/elm-explorations/test/tree/2.2.0) | `Fuzz`: Add `Fuzz.filterMap`
| [**2.1.2**](https://github.com/elm-explorations/test/tree/2.1.2) | `Fuzz`: Remove arbitrary limit on amount of randomness drawn
| [**2.1.1**](https://github.com/elm-explorations/test/tree/2.1.1) | `Test.Html.Query`: Change how boolean attributes are rendered
| [**2.1.0**](https://github.com/elm-explorations/test/tree/2.1.0) | Add `Test.Html.Selector.exactText` |
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.1.1/Test/#describe) to add a description string to a list of tests
* [`test`](https://package.elm-lang.org/packages/elm-explorations/test/2.1.1/Test/#test) to write a unit test
* [`Expect`](https://package.elm-lang.org/packages/elm-explorations/test/2.1.1/Expect/) to determine if a test should pass or fail
* [`fuzz`](https://package.elm-lang.org/packages/elm-explorations/test/2.1.1/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.2.0/Test/#describe) to add a description string to a list of tests
* [`test`](https://package.elm-lang.org/packages/elm-explorations/test/2.2.0/Test/#test) to write a unit test
* [`Expect`](https://package.elm-lang.org/packages/elm-explorations/test/2.2.0/Expect/) to determine if a test should pass or fail
* [`fuzz`](https://package.elm-lang.org/packages/elm-explorations/test/2.2.0/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.1.1/Test/#Test) values).
This package lets you define tests ([Test](https://package.elm-lang.org/packages/elm-explorations/test/2.2.0/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.1.2",
"version": "2.2.0",
"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.1.1/ && mkdir -p ~/.elm/0.19.1/packages/elm-explorations/test/2.1.1/ && cp -r ./{src,elm.json,LICENSE,README.md} ~/.elm/0.19.1/packages/elm-explorations/test/2.1.1/"
"install-local": "rm -rf ~/.elm/0.19.1/packages/elm-explorations/test/2.2.0/ && mkdir -p ~/.elm/0.19.1/packages/elm-explorations/test/2.2.0/ && cp -r ./{src,elm.json,LICENSE,README.md} ~/.elm/0.19.1/packages/elm-explorations/test/2.2.0/"
},
"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.1.2",
"elm-explorations/test": "2.2.0",
"elm-explorations/webgl": "1.1.2",
"jinjor/elm-diff": "1.0.6"
},
Expand Down

0 comments on commit d7b5710

Please sign in to comment.