unittests are really part of the build, not a special run
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Wed Apr 1 23:33:50 PDT 2015
On 2015-04-01 21:18, Kapps wrote:
> The only issue I have with the way unittests are done right now, is the
> incredibly annoying requirement of having a main function and that main
> gets called. It makes generic tooling and CI systems much more annoying,
> as you have to try and guess whether you need to create a fake main()
> (or pass in -main), and worry about if the code is going to keep running
> after tests complete.
I just don't compile the module congaing the main function. Although I
place the my tests in a completely separate directory.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list