www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Unit testing druntime

reply "Jonathan" <jadit2 gmail.com> writes:
I noticed that I'm not able to unit test a file in isolation in 
druntime like I can in phobos. For example, I can't seem to run 
unit tests using the below method:
rdmd -unittest -main src/core/atomic.d

Is there a way to test modules in druntime like this?
Mar 30 2015
parent Steven Schveighoffer <schveiguy yahoo.com> writes:
On 3/30/15 4:37 PM, Jonathan wrote:
 I noticed that I'm not able to unit test a file in isolation in druntime
 like I can in phobos. For example, I can't seem to run unit tests using
 the below method:
 rdmd -unittest -main src/core/atomic.d

 Is there a way to test modules in druntime like this?
Druntime unit tests are very fast (build and run takes 5 seconds on my mac). I don't think we need this. Phobos is much slower. -Steve
Mar 30 2015