Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
wavded opened this Issue · 8 comments

5 participants

Marc Harter Alexis Sellier Eneko Alonso Mattias Petter Johansson Charlie Robbins
Marc Harter

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.

Alexis Sellier

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.

Alexis Sellier

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.

Marc Harter

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!

Alexis Sellier

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

cheers

Marc Harter

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

Alexis Sellier

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

Eneko Alonso

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.

Mattias Petter Johansson

Seconding the underscore comment.

Charlie Robbins indexzero changed the title from empty "vows" command does not work anymore to Run tests for test files with "_" in filename.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.