Skip to content

Adding include paths to CLI testrunner #67

@DanielBaulig

Description

@DanielBaulig

I think it would be useful to have something like --include=PATH for the CLI testrunner. That way you can setup your testsuite without having to know about the actual location of the test suite in the directory structure. The call to the CLI testrunner then can take care of setting up the enviroment using --include. No need to repeat

require =("../lib/LibrarySubjectToBeTested");

but do

require('LibrarySubjectToBeTested"); 

and simply call

nodeunit --include=../lib/

I implemented a patch that would add this functionality to the testrunner. Have a look at it: 1db0b28
Please let me know what you think and if there's anything I missed. If you like it, feel free to pull it in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions