howto run unittest of a single module in dub driven project?

Basile B. b2.temp at gmx.com
Sun Mar 4 11:38:37 UTC 2018


On Sunday, 4 March 2018 at 10:43:06 UTC, Arjan wrote:
> Is it somehow possible to only run the unittests of a single d 
> file within a dub project? Of course without resorting to 
> typing the complete commandline with all versions includes 
> switches etc.

In Coedit yes.

1/ The path to the other source (usually the <leading path>/src/ 
or <leading path>/source/) folder must be registered in the 
library manager.
2/ Menu "Compilation" item "Run file unittests", which test the 
module that have the focus in the editor.


Relevant manual page:

- http://bbasile.github.io/Coedit/features_runnables#other (The 
action Run file unittest is almost the same thing as a runnable, 
except that -unittest is added to the switches byt the IDE).
- http://bbasile.github.io/Coedit/widgets_library_manager : 
dependencies for single  module to be run or executed must be 
reistered here.

And finally i can say that it works fine since i use this system 
for years.


More information about the Digitalmars-d-learn mailing list