Releases: mpizenberg/elm-test-rs
Better errors and reports
The main changes since version 0.6.1 are the following:
- All potential panics (I think) have been replaced by better error handling and error messages.
- The
--report json
option is now equivalent to the one of elm-test, making the transition easier for tooling if they want to try elm-test-rs. - The
--report junit
option is now more complete, trying to follow the spec for the format used by Ant, with very few alterations: there is no "timestamp" attribute in "testsuite", no "type" attribute in "failure", andDebug.log
calls are captured and reported in a "system-out" attribute in "testcase" instead of being a tag in "testsuite". - The "billstclair/elm-xml-eeue56" dependency for the test runner has been vendored to prevent potential clashes.
- A
--project path/to/project/root
option has been added to be able run elm-test-rs from outside of a project. - Http timeouts have been increased from 1s to 10s.
I also made a PR to improve the duplicate description failure output. If accepted, the next version of elm-explorations/test will list all duplicates of a group at once instead of 1 by 1. That will be useful both for elm-test and elm-test-rs.
Fix missing elm/json dependency
Version 0.6 fixed a bug but made visible another issue: elm/json
may only appear in indirect dependencies if the user does not depend on it directly. Yet it is needed in the main Runner.elm
and Reporter.elm
programs. So if missing in direct deps, it is now added to it.
Quiet and splitting deps
This version adds a --quiet
argument, intended at reducing the amount of things printed to stderr. It also fixes a naming issue for imported modules with the same name existing in direct and indirect dependencies. The fix consists in splitting deps after resolution to direct and indirect. Finally, few dependencies of elm-test-rs have been updated.
Small code refactor, small changes in exercism report
Some small changes within the code to improve readability of macros, and an update of the elm package elm-test-runner to version 3.1.1 which fixes some things in the exercism report.
Node 10 support, fix unicode, exercism report
In this release, @malaire added support for Node 10 with the --experimental-worker
flag. A parsing bug related to long unicode chars was fixed. Finally, a new --report
value of "exercism" was added to ease integration of elm-test-rs in the exercism test runner for elm.
Clean some stderr outputs
Just a small fix release. The section with Debug.log
calls captured at startup is only shown if there are any.
Colors, diffs, connectivity and filtering
This one is a huge release! Among the new additions to elm-test-rs, there is:
- support for colors in the console reporter
- nice formatting of failure diffs based on the code in node-test-runner
- ability to pick
--connectivity
and a strategy to choose versions of dependencies: "offline" | "online-newest" | "online-oldest" - ability to filter the tests to run based on their description with the new
--filter
CLI argument
The previous console reporter is still available under the "consoleDebug" report option. And some potential bugs were fixed.
Capture Debug.log
This release is now capable of capturing calls to Debug.log
and to report them in the console report. It also features some code simplification in the Elm/JS interop between the supervisor and ther runners.
Add a true --watch option
This version adds a true --watch
option. On any file change of elm.json
or in one of the source directories, it will rerun the tests. There is a 1s debouncing delay to avoid double events.
Stealth watch and perf improvements
There are two main changes in this release.
- A stealthy
--watch
option was added explaining why it is not needed for elm-test-rs. - The generated
elm.json
for tests is not overwritten anymore if identical. This improves the running time of the elm compilation step since the elm compiler uses timestamps to discard caches.