Change to unittest?
DLearner
bmqazwsx123 at gmail.com
Thu Dec 21 10:38:16 UTC 2023
This applies to dmd version v2.106.0-dirty under Windows.
Module containing several functions with unittests, no 'main'
function.
Was testing ok some time ago, producing '1/1 modules PASSED
unittests' message.
Today,
```
dmd -main -unittest -run <modulename>
```
produced nothing, just a return to the command prompt.
(FWIW no corresponding .obj or .exe files in directory)
So, reversed one of the unittests to produce failure, and
repeated.
Same result. (Suggesting unittests not being run).
Then reset unittest, and ran without the -run.
Saw .obj and .exe files.
Ran .exe: no messages.
Then (maybe this sheds some light) changed the test to produce
failure, ran without -run, then ran resulting .exe
And got
```
1/1 modules FAILED unittests
```
Has there been some sort of change to the -unittest function?
More information about the Digitalmars-d-learn
mailing list