I'm trying to port one of my python packages to nim. The package uses pytest
I'm really confused about testing in nim.
The documentation for testament (at lest the one I've managed to find) is mostly about how to invoke it. Most searches just finds some issues and debate about testament vs unittest. Then there are some statements about the compiler itself using testament, so one can see examples there.
I then took a look at tests/stdlib/tos.nim trying to figure out how to write testcases.
Has there been any discussion about porting pytest? Not to achieve a one-to-one feature list (pytest has it's own quirks) but just taking all the excellent concepts, like fixtures?
Theres setup, teardown, categories, etc heres some example with a description
https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers#Unittests
You can use unittest with testament too.