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
- Host: GitHub
- URL: https://github.com/compas-dev/ironpython-pytest
- Owner: compas-dev
- License: mit
- Created: 2020-04-24T11:11:11.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-10-25T09:34:53.000Z (over 2 years ago)
- Last Synced: 2025-03-09T02:16:33.807Z (about 1 month ago)
- Language: Python
- Size: 56.6 KB
- Stars: 2
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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 osimport 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