Currently I use the unittest module from the standard library and nimble test to test my code.
I like unittest's DSL. The tests look very clean.
What I miss is some output at the end of the nimble test run about the number of successful, failed and skipped tests (like Python's pytest). My use case is that my tests passed, I then changed the API and am adapting the tests. I would like to see whether the tests I adapted for the new API pass after adapting each of them (or tried to ;-) ). For example something like:
$ nimble test
...
0 successful, 2 failed, 0 skipped
-> adapt test 1
$ nimble test
...
1 successful, 1 failed, 0 skipped
-> adapt test 2
$ nimble test
...
2 successful, 0 failed, 0 skipped
I searched the Nimble documentation and the forum, but couldn't find anything helpful.
Does Nimble have this functionality? If yes, how can I use it? If not, what's a (hopefully easy) way to get the statistics otherwise?
Extra question, if you want to answer: Which tools do you use for testing Nim code and why do you use these tools? What are the advantages over nimble test?
Our test utilities expand unittest with timing information:
https://github.com/status-im/nim-beacon-chain/tree/a90b0dd1/tests and reports https://github.com/status-im/nim-beacon-chain/blob/a90b0dd1/AllTests-mainnet.md
We are also progressively building a testing library https://github.com/status-im/nim-testutils