0.7.0 • Published 6 years ago

jest-pytest v0.7.0

Weekly downloads
40
License
MIT
Repository
github
Last release
6 years ago

jest-pytest

Based on @cpojer's amazing Jest / Pytest work here, and adapted to work with pytest snapshots and a custom JSON pytest reporter.

Essentially, it's:

  1. jest-pytest to tie up the Jest side.
  2. pytest-jest to tailor-fit reporting from the Python side.

Quick Start

$ yarn add jest-pytest

To your Python project, add pytest-jest:

pip install pytest-jest --upgrade

Optionally, add snapshots:

pip install snapshottest

And then add a package.json file with the following Jest pragma:

  "jest": {
    "moduleFileExtensions": ["py"],
    "runner": "jest-pytest",
    "testPathIgnorePatterns": ["snap_.*\\.py"],
    "testMatch": ["**/?(*_)test.py"]
  }

Note that this configuration will work well with Pytest snapshots.

Contributing

Fork, implement, add tests, pull request, get my everlasting thanks and a respectable place here :).

Thanks:

To all Contributors - you make this happen, thanks!

Copyright

Copyright (c) 2018 Dotan Nahum @jondot. See LICENSE for further details.

0.7.0

6 years ago

0.6.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.3

6 years ago