Skip to content

richardcooper/pytest-mocha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pytest-mocha

Pytest output in MochaJS format

pytest-mocha

It uses docstrigs as a tool to create the sections that mocha creates using the describe and it structure. Example:

# file examples/test_example.py
def test_case():
    '''Section :: subsection :: Should execute test'''
    pass

outputs this:

Section :: examples/test_example.py
    subsection
        ✓ Should execute test

Install

pip install pytest-mocha

Use

pytest --mocha

Args

  • --mocha: Enable mocha as pytest reporter
  • --mocha-force-disable: Disable mocha reporter even if enabled with --mocha flag

About

Pytest output in MochaJS format

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%