unit test that show more than one failure

Joel joelcnz at gmail.com
Tue Jun 16 09:34:34 UTC 2020


On Tuesday, 16 June 2020 at 07:39:20 UTC, Luis wrote:
> On Tuesday, 16 June 2020 at 06:19:51 UTC, Joel wrote:
>> [...]
>
> I understand that where the trivial test code is placed, must 
> be something more complex being tested.
>
> @("dummy test 1");
> unittest {
>    /// Some test code that runs fine
> }
>
> @("dummy test 2");
> unittest {
>    /// Some test code that fails
> }
>
> @("dummy test 3");
> unittest {
>    /// Some test code that runs fine
> }
>
> Does (with Silly) :
>
> ✓ app dummy test 1
> ✗ app dummy test 2
> ✓ app dummy test 3
>
> Summary: 2 passed, 1 failed in XX ms
>
>
> If you literary expects that some test runner do what you 
> write... sorry but you will never find it on ANY language (that 
> I know).

Oh, that's what it is (one UDA a test). Thanks guys.


More information about the Digitalmars-d-learn mailing list