Thoughts about unittest run order
Atila Neves
atila.neves at gmail.com
Tue May 7 09:40:27 UTC 2019
On Tuesday, 7 May 2019 at 08:49:15 UTC, John Colvin wrote:
> On Monday, 6 May 2019 at 18:13:37 UTC, H. S. Teoh wrote:
>> In theory, the order in which unittests are run ought to be
>> irrelevant. In practice, however, the order can either make
>> debugging code changes quite easy, or very frustrating.
>>
>> [...]
>
> Use a test runner that runs all the tests regardless of
> previous errors? (and does them in multiple threads, hooray!)
>
> https://github.com/atilaneves/unit-threaded
unit-threaded can also do the random order and reuse a seed like
Jacob mentioned above.
If the order tests run in is important, the tests are coupled...
friends don't let friends couple their tests.
More information about the Digitalmars-d
mailing list