unittests not being run
Bahman Movaqar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 15 04:37:06 PDT 2016
The test I have in 'app.d' don't get picked up by 'dub test' in a
freshly created project by 'dub init'.
$ dub test
Generating test runner configuration '__test__library__' for
'library' (library).
Performing "unittest" build using dmd for x86_64.
dplay ~master: building configuration "__test__library__"...
Linking...
Running ./__test__library__
All unit tests have been run successfully.
[app.d]
import std.stdio;
private int incBy1(int i) { return i + 1; }
unittest {
assert(foo(1) == 200);
}
void main() {
writeln("hi");
}
What am I missing?
Thanks in advance,
--
Bahman
More information about the Digitalmars-d-learn
mailing list