- added runtests.py (blob of pytest)

- html output with aha uses runtests.py
- renamed test directory
This commit is contained in:
Paul Müller 2015-01-21 13:49:51 +01:00
parent 48831754f8
commit 5a0dc656a2
11 changed files with 3145 additions and 42 deletions

View file

@ -3,14 +3,20 @@ jobmanager
Easy distributed computing based on the python class SyncManager for remote communication and python module multiprocessing for local parallelism.
### Testing on Linux
### Developer's note
After cloning into jobmanager, create a virtual environment
virtualenv --system-site-packages ve_jm
source ve_jm/bin/activate
Install jobmanager into the environment and run a simple example.
Install all dependencies
python setupy.py develop
Running an example
python setupy.py install
python examples/simple_example.py
Running tests
python tests/runtests.py

View file

@ -1,7 +0,0 @@
#!/bin/bash
OUTFILE='pytest.html'
echo "run py.test ..."
(date; py.test --color=yes) | aha --black --title "pytest output for jobmanager module"> $OUTFILE
echo "done! (output written to $OUTFILE)"

View file

@ -8,9 +8,6 @@ from warnings import warn
name='jobmanager'
try:
import sys
import os

View file

@ -1,29 +0,0 @@
Test Scripts
============
Execute the scripts using python or use pytest.
Client
------
python test_clients.py
Progress
--------
python test_progress.py
Jobmanager Server-Client
------------------------
Server:
python test_jobmanager.py server
Client
python test_jobmanager.py

42
tests/README.md Normal file
View file

@ -0,0 +1,42 @@
Test Scripts
============
This will run all tests:
python runtests.py
Beautiful html output is possible with (Unix, package `aha` required)
./runtests_html.sh
Running single tests
--------------------
Directly execute the scripts, e.g.
Client
......
python test_clients.py
Progress
........
python test_progress.py
Jobmanager Server-Client
........................
Server:
python test_jobmanager.py server
Client
python test_jobmanager.py

3084
tests/runtests.py Normal file

File diff suppressed because it is too large Load diff

10
tests/runtests_html.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Go to script directory
cd $(dirname $0)
OUTFILE='pytest.html'
echo "Working directory: $(pwd)"
echo "Running py.test ..."
(date; python runtests.py --color=yes) | aha --black --title "pytest output for jobmanager module"> $OUTFILE
echo "Done! (output written to $OUTFILE)"