Skip to content

Commit 3416647

Browse files
committed
Separate script for running unit tests with plugin.
1 parent fdb27ce commit 3416647

3 files changed

Lines changed: 10 additions & 13 deletions

File tree

docs/index.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ Running the unit tests
2828

2929
Running the unit tests requires Nose.
3030

31-
1. Build and install in the source code tree so that the unit tests can run::
32-
33-
python setup.py develop
34-
35-
2. Running the unit tests::
36-
37-
python setup.py nosetests
31+
python nosetests.py
3832

3933

4034
Starting the JVM

nosetests.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
3+
import nose
4+
from javabridge.noseplugin import JavabridgePlugin
5+
6+
if __name__ == '__main__':
7+
nose.main(plugins=[JavabridgePlugin()])
8+

setup.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
],
2424
license='BSD License',
2525
package_data={'bioformats': ['jars/*.jar']},
26-
install_requires=['javabridge>=1.0'],
27-
tests_require='nose',
28-
entry_points={'nose.plugins.0.10': [
29-
'javabridge = javabridge.noseplugin:JavabridgePlugin',
30-
]},
31-
test_suite='nose.collector'
26+
install_requires=['javabridge>=1.0']
3227
)
3328

0 commit comments

Comments
 (0)