On Friday, 4 December 2015 at 19:00:37 UTC, Russel Winder wrote:
… is completely hideous, or am I unique in objecting to the mess of output you get on a test fail?


You can look at some of the DUB packages: http://code.dlang.org/search?q=test for more advanced testing facilities.

I for example sometimes use dunit (https://github.com/nomad-software/dunit) which has nice test results reporting:

DUnit by Gary Willoughby.
-> Running unit tests
- example

+----------------------------------------------------------------------
| Failed asserting equal
+----------------------------------------------------------------------
| File: example.d
| Line: 91
+----------------------------------------------------------------------
| ✓ Expected value: (int) 1
| ✗ Actual value: (ulong) 2

By the way, looking at the code, it shouldn't be too hard to write your own test runner: https://github.com/nomad-software/dunit/blob/master/source/dunit/moduleunittester.d?ts=3

Reply via email to