Ridiculously minimal and incomplete pytest replacement for IronPython
Project description
ironpython-pytest
Ridiculously minimal and incomplete pytest replacement for IronPython.
This is not an attempt to fork pytest
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:
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ironpython-pytest-0.5.0.tar.gz
.
File metadata
- Download URL: ironpython-pytest-0.5.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561cd97af97245cc4efa7a389ce0b33ace97eed245613f03e927629892c20c90 |
|
MD5 | 8bd9c225d8944d9cd46d1dfc9dbcf208 |
|
BLAKE2b-256 | c32d12c736f935353c18224a7903e1a816baa496423e40ec308d0e18b956abaf |
File details
Details for the file ironpython_pytest-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: ironpython_pytest-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | df21cd9112626e558fbda4258e63d3af99edd3ec641a9fb055a4d3bd7b57119f |
|
MD5 | 8d15ddfba85615570b3cdfadc5182518 |
|
BLAKE2b-256 | ccab42e3e765a7286f13165505c471b89d7cef81edc6dbaa06e83a687d7ca240 |