This package enables you to use the Python nose
module for running test
cases on your Node.py packages.
$ nodepypm install --save-dev git+https://github.com/nodepy/nodepy-nosetests.git
$ nodepy-nosetests .
Place your *_test.py
files in the same directory as your source files:
nodepy-package.toml
lib/
semver.py
semver_test.py
You can also place them in a test
directory and glob the test files:
$ ls test/
semver.py
$ nodepy-nosetests test/*.py
Your tests are loaded just like normal Node.py modules:
from nose.tools import *
import {Version} from './semver'
def test_version():
# ...
- Greatly simplified implementation by implementing a custom
Importer
- Transition to Node.py and nodepypm 2
- Add
.
torequire.path
of thenodepy-nose
package, enabling to specify filenames on thenodepy-nose
command-line