paratest-python-nose

Plugin for Paratest to run python tests with nose


Keywords
parallel, test, plugin, nose, python
License
MIT
Install
pip install paratest-python-nose==0.0.1

Documentation

This proyect is just a template for other Paratest plugins.

Steps to create a new plugin:

  1. Clone this repository: git clone https://github.com/paratestproject/paratest-plugin-template paratest-new-plugin
  2. Remove the .git directory and initialize git, if necessary: rm -rf .git && git init
  3. Edit the paratest_plugin/plugin.py file to implement the find function.
  4. Move the paratest_plugin directory to match your plugin name (do not use hyphens; use underscores instead): mv paratest_plugin paratest_new_plugin
  5. Edit the setup.py file, changing the name, version, author, author_email, url and entry_points path.
  6. Register the new plugin in pypi: python setup.py register
  7. Ensure you have wheel installed: pip install wheel
  8. Upload the new plugin to pypi: python setup.py sdist bdist_wheel upload

Alternatively, you can rename paratest_plugin/plugin.py too, but remember to change the entry_point key in setup.py too.

To test it, just run python paratest_plugin/plugin.py path_to_test_files and check the output is correct.

Finally, just to remember that the command line may contain some variables:

  • {ID} will be replaced by the worker identifier.
  • {WORKSPACE} will be replaced by the full path to worker workspace
  • {TID_NAME} will be replaced by the test name