Nix-unit improvements

Hi! I opened a PR to add a way to specify the maximum failures allowed in a nix-unit run before it bombs out.

In general, I draw from some of the options we have over in the Elixir ecosystem that are quite useful. In particular, I think we could benefit from things like:

  • Max failures before abort (my PR)
  • Different formatting options (json, TAP, xUnit, JUnit, etc.)
  • Ability to mark tests as skippable
  • Ability to add tags to tests so you can run subsets of tests easily
  • Timing information to catch perf regressions or look for slowest tests

I’m curious: what features do folks want otherwise? Any experiences or thoughts about nix-unit and ideas for improvement, or just observations on usage?

3 Likes

The --max-failures flag got merged, so I think the next thing is either new formatters and/or timing information.

1 Like