sphinx-test-cases

This package is a simple extention to the Sphinx, which is


Keywords
sphinx, test, case, scenario, plan
License
Apache-2.0
Install
pip install sphinx-test-cases==0.1

Documentation

Pytest description

Add a description of the test scenario in reStructuredText. Also autodoc extension added.

Thanks

Based on the two examples from the sphinx documentation:

  • recipies
  • intenum

Gramma

Currently, there is only one directive (test:test) with few roles

  • reqs (TODO: change from option)
  • suite (TODO: read from mark)
  • init
  • passcrit
  • step(s)
  • desc

Examples

  1. Standalone (the example/standalone/my_tests.rst reStructuredText)
  2. Docstring (embedded in the python script as a docstring of the test_ functions)

containerization

The examples could be executed using the docker container build by the Dockerfile from docker directory. On the docker hub, you can find the image

docker pull arturim13/sphinx-testdec:01

Build image

Execute in main repository directory (same as this README.md file)

docker build -t arturim/sphinx-testdec -f docker/Dockerfile .