Selective unittesting in DUB
Johannes Loher
johannes.loher at fg4f.de
Tue Dec 1 14:33:50 UTC 2020
Am 01.12.20 um 08:11 schrieb ryuukk_:
> Running .\dawn-test-application.exe
> 2 modules passed unittests
>
>
> Wich ones????? it should print
>
>
> ```
> Running tests for target X
>
> ------------- src/module_a.d Tests: OK <-- line in green
> ------------- src/module_b.d Tests: OK
> ------------- src/module_c.d Tests: OK
> ------------- src/module_e.d Tests: FAIL <-- line in red
>
> 3 modules passed, 1 failed
>
> ```
>
>
>From what I understand, the default test runner is intentionally being
kept quite simple. There are some libraries that provide test runners
that do what you expect (e.g. [1], [2], [3], there is probably more).
[1] https://code.dlang.org/packages/silly
[2] https://code.dlang.org/packages/unit-threaded
[3] https://code.dlang.org/packages/trial
More information about the Digitalmars-d-learn
mailing list