Skip to main content

ironpython-pytest

Version License

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

Release files for ironpython-pytest 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ironpython-pytest 0.5.0
File Size Uploaded
ironpython-pytest-0.5.0.tar.gz 10.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ironpython-pytest 0.5.0
File Interpreter ABI Platform
ironpython_pytest-0.5.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.3 kB

Release files / ironpython-pytest-0.5.0.tar.gz

Download URL ironpython-pytest-0.5.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
561cd97af97245cc4efa7a389ce0b33ace97eed245613f03e927629892c20c90
BLAKE2b-256 checksum
How to use checksums
c32d12c736f935353c18224a7903e1a816baa496423e40ec308d0e18b956abaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / ironpython_pytest-0.5.0-py2.py3-none-any.whl

Download URL ironpython_pytest-0.5.0-py2.py3-none-any.whl
Size 8.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
df21cd9112626e558fbda4258e63d3af99edd3ec641a9fb055a4d3bd7b57119f
BLAKE2b-256 checksum
How to use checksums
ccab42e3e765a7286f13165505c471b89d7cef81edc6dbaa06e83a687d7ca240
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page