Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Run tests for test files with "_" in filename. #57

Closed
wavded opened this Issue Feb 10, 2011 · 8 comments

Comments

Projects
None yet
5 participants

wavded commented Feb 10, 2011

At the root of my project I have a test folder with some test files in it. Before the latest upgrades I could run.

vows

From my project root and it would run all the tests in the folder. Now it does:

Could not find any tests to run.

Let me know if there is any other info you need.

Contributor

cloudhead commented Feb 10, 2011

You need to make sure you have files in the test folder named foo-test.js, bar-test.js etc. The latest change makes it so it won't load files without -test in their name, so it doesn't try to load modules which aren't tests.

Contributor

cloudhead commented Feb 10, 2011

You need to make sure you have files in the test folder named foo-test.js, bar-test.js etc. The latest change makes it so it won't load files without -test in their name, so it doesn't try to load modules which aren't tests.

wavded commented Feb 11, 2011

ok, they were named file1.test.js and i changed it to file1-test.js and it worked. i kinda like the . over the - but whatever it works now. Thanks!

Contributor

cloudhead commented Feb 13, 2011

Cool. I think .test is acceptable too, I'll add it to the next version.

cheers

wavded commented Feb 13, 2011

great thanks... I haven't worked used a spec directory, but does this follow the same convention. e.g. naming files ("app-spec.js")?

Contributor

cloudhead commented Feb 15, 2011

yes, exactly. Some people prefer to call them 'specs', others 'tests'.

eneko commented Sep 28, 2011

What about adding _test.js as a sufix for text files? Is not my preference, but in some projects we use underscore for all files.

mpj commented Nov 23, 2011

Seconding the underscore comment.

@indexzero indexzero changed the title from empty "vows" command does not work anymore to Run tests for test files with "_" in filename. Nov 4, 2014

@wavded wavded closed this May 5, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment