DEV Community

Discussion on: Where Should Tests Live?

Collapse
 
joaof profile image
joaof

D has them integrated in the language:

dlang.org/spec/unittest.html

And allows them to be put in source code. Interestingly enough they are (can be) executed when program runs. Enforcing this looks like a good idea, since the tests must pass for the program to be run (which is perhaps more important than the place where you put the test code, although OT).