An open API service indexing awesome lists of open source software.

https://github.com/compas-dev/ironpython-pytest

Ridiculously minimal and incomplete pytest replacement for IronPython
https://github.com/compas-dev/ironpython-pytest

Last synced: about 1 month ago
JSON representation

Ridiculously minimal and incomplete pytest replacement for IronPython

Awesome Lists containing this project

README

        

# ironpython-pytest

![Version](https://img.shields.io/pypi/v/ironpython-pytest) ![License](https://img.shields.io/pypi/l/ironpython-pytest)

> Ridiculously minimal and incomplete pytest replacement for IronPython.

This is **not** an attempt to fork [`pytest`](https://docs.pytest.org/) to IronPython (as the abandoned `pytest-ironpython`), instead it's intended to provide the bare minimum for a drop-in replacement of a subset of `pytest` conventions and framework required to run unit tests on IronPython.

It makes a ton of assumptions and has very little configurability.

Deal with it.

(•\_•) ( •\_•)>⌐■-■ (⌐■\_■)

## Installation

ipy -X:Frames -m ensurepip
ipy -X:Frames -m pip install ironpython-pytest

## Usage

From the command line:

ipy -m pytest file_or_dir

Or programmatically:

```python
import os

import pytest

if __name__ == '__main__':
# Fake some modules
pytest.load_fake_module('Rhino')
pytest.load_fake_module('Rhino.Geometry', fake_types=['RTree', 'Sphere', 'Point3d'])

pytest.run('project/test_dir/')
```

## Release

To release a new version of this project:

- Update the changelog with all novelty
- Bump version:

bump2version [major|minor|patch] --verbose

- Push it:

git push && git push --tags

- Prepare the changelog for next release