METADATA 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Metadata-Version: 2.0
  2. Name: pytest-forked
  3. Version: 0.2
  4. Summary: run tests in isolated forked subprocesses
  5. Home-page: https://github.com/pytest-dev/pytest-forked
  6. Author: pytest-dev
  7. Author-email: pytest-dev@python.org
  8. License: MIT
  9. Platform: linux
  10. Platform: osx
  11. Classifier: Development Status :: 7 - Inactive
  12. Classifier: Framework :: Pytest
  13. Classifier: Intended Audience :: Developers
  14. Classifier: License :: OSI Approved :: MIT License
  15. Classifier: Operating System :: POSIX
  16. Classifier: Operating System :: MacOS :: MacOS X
  17. Classifier: Topic :: Software Development :: Testing
  18. Classifier: Topic :: Software Development :: Quality Assurance
  19. Classifier: Topic :: Utilities
  20. Classifier: Programming Language :: Python
  21. Classifier: Programming Language :: Python :: 2
  22. Classifier: Programming Language :: Python :: 3
  23. Requires-Dist: pytest (>=2.6.0)
  24. pytest-forked: run each test in a forked subprocess
  25. ====================================================
  26. .. warning::
  27. this is a extraction of the xdist --forked module,
  28. future maintenance beyond the bare minimum is not plannend until a new maintainer is found
  29. * ``--forked``: (not available on Windows) run each test in a forked
  30. subprocess to survive ``SEGFAULTS`` or otherwise dying processes
  31. Installation
  32. -----------------------
  33. Install the plugin with::
  34. pip install pytest-forked
  35. or use the package in develope/in-place mode with
  36. a checkout of the `pytest-forked repository`_ ::
  37. pip install -e .
  38. Usage examples
  39. ---------------------
  40. If you have tests involving C or C++ libraries you might have to deal
  41. with tests crashing the process. For this case you may use the boxing
  42. options::
  43. py.test --forked
  44. which will run each test in a subprocess and will report if a test
  45. crashed the process. You can also combine this option with
  46. running multiple processes via pytest-xdist to speed up the test run
  47. and use your CPU cores::
  48. py.test -n3 --forked
  49. this would run 3 testing subprocesses in parallel which each
  50. create new forked subprocesses for each test.
  51. .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked