Re: Can one customize unit tests?

2019-08-03 Thread Dennis via Digitalmars-d-learn
The out-of-the box unittest runner is pretty bare by design. It just runs unittest blocks in serial as functions where assert() failures are not undefined behavior. Assert messages are not very helpful, though the recently added flag `-checkaction=context` helps a lot. Luckily there is a

Can one customize unit tests?

2019-08-03 Thread PV via Digitalmars-d-learn
Is it possible to somehow customize syntax and running of unit tests? How I could use it: 1. Running only the tests from recently modified source files. 2. Ability to add optional timeout constraint into the tests, and then check whether the test doesn't exceed it. unittests (time <