unit test that show more than one failure

Joel joelcnz at gmail.com
Tue Jun 16 06:19:51 UTC 2020


I've tired different unit test libraries, but they jump out on 
errors instead of just adding to failed numbers.

I'm thinking like this:

```
@("dummy");
unittset {
   0.shouldEqual(0);
   1.shouldEqual(2);
   2.shouldEqual(3);
}
```

Test: dummy
test passed line 10: 0 is equal to 0
test failed line 11: 1 is not equal to 2
test failed line 12: 2 is not equal to 3

1 passed
2 failed

The unit tests I tried would jump out on the first failure.


More information about the Digitalmars-d-learn mailing list