Skip to content

Releases: mpizenberg/elm-test-rs

Better errors and reports

09 Feb 15:32
735daac
Compare
Choose a tag to compare
Pre-release

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", and Debug.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

22 Jan 23:33
f57bf71
Compare
Choose a tag to compare
Pre-release

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

22 Jan 22:48
8f25ec5
Compare
Choose a tag to compare
Pre-release

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

05 Jan 20:41
c8cd8b3
Compare
Choose a tag to compare

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

31 Dec 14:19
Compare
Choose a tag to compare

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

25 Dec 09:05
0dc6c9c
Compare
Choose a tag to compare
Pre-release

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

23 Dec 15:00
322e15f
Compare
Choose a tag to compare

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

21 Dec 17:44
Compare
Choose a tag to compare
Capture Debug.log Pre-release
Pre-release

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

20 Dec 09:08
022cae5
Compare
Choose a tag to compare
Pre-release

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

19 Dec 17:56
Compare
Choose a tag to compare
Pre-release

There are two main changes in this release.

  1. A stealthy --watch option was added explaining why it is not needed for elm-test-rs.
  2. 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.