Re: Unit testing D module

2013-12-26 Thread John Colvin
On Thursday, 26 December 2013 at 09:25:14 UTC, Dfr wrote: If i do not want to unit test whole codebase, because it big enough and all tests take noticeable time to run. So i trying this: dmd -unittest mymodule.d And getting error: "undefined reference to `main'" But i don't want to run 'main'

Re: Unit testing D module

2013-12-26 Thread Chris Cain
On Thursday, 26 December 2013 at 09:25:14 UTC, Dfr wrote: If i do not want to unit test whole codebase, because it big enough and all tests take noticeable time to run. So i trying this: dmd -unittest mymodule.d And getting error: "undefined reference to `main'" But i don't want to run 'main'

Unit testing D module

2013-12-26 Thread Dfr
If i do not want to unit test whole codebase, because it big enough and all tests take noticeable time to run. So i trying this: dmd -unittest mymodule.d And getting error: "undefined reference to `main'" But i don't want to run 'main' here, just unit test please. Any idea how to test single m