You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a few tests scattered throughout multiple files.
Currently I just run nodeunit ., nodeunit then tests them all successfully. Great!
But I want to export a function from one of my files so that another can call it. The problem is that when I run nodeunit . that function now gets called.
How can I run tests on all files? I'm used to python's nose library, which only tests functions that have test in the function name.
Do I need to move all tests into a seperate file to the functionality? I don't want to do that. I like putting tests adjacent to the code they're testing.
The text was updated successfully, but these errors were encountered:
I've got a few tests scattered throughout multiple files.
Currently I just run
nodeunit .
, nodeunit then tests them all successfully. Great!But I want to export a function from one of my files so that another can call it. The problem is that when I run
nodeunit .
that function now gets called.How can I run tests on all files? I'm used to python's
nose
library, which only tests functions that havetest
in the function name.Do I need to move all tests into a seperate file to the functionality? I don't want to do that. I like putting tests adjacent to the code they're testing.
The text was updated successfully, but these errors were encountered: