I wrote a small package for processing file permissions. The structure follows the Python package standards :
.
|
`
|
|
|
| |
| `
`
Both noses and behavior run tests from the command line without any problems:
Nose:
$ nosetests
.
----------------------------------------------------------------------
Ran 1 test in 0.002s
OK
Lead:
$ behave
Feature: Lots of cheese # permission_mode.feature:1
Scenario: blah # permission_mode.feature:2
Given a # steps/steps.py:1 0.000s
Then b # steps/steps.py:5 0.000s
1 feature passed, 0 failed, 0 skipped
1 scenario passed, 0 failed, 0 skipped
2 steps passed, 0 failed, 0 skipped, 0 undefined
Took 0m0.000s
My file setup.pycontains the following test specification:
test_suite='nose.collector',
tests_require=['nose']
And so it python setup.py testruns nasal tests with the same output as nosetests.
How to configure behavior as a package testing tool, so that python setup.py testwill work?
source
share