Add pytest mode to djblets.testing.testrunners.TestRunner.

Review Request #13075 — Created May 30, 2023 and submitted — Latest diff uploaded

Information

Djblets
release-4.x

Reviewers

We've mostly phased out nose from our own usage, but it's still being
used for the extension test runner. The behavior is different enough
that we need a transition period to move people over.

In most cases, once extensions are configured in a way to make use of
pytest, they'll be able to just run pytest instead of rbext test,
but we also want latter to continue to exist.

This change adds a mode to the TestRunner to use pytest instead of nose.
That can be opted into for now, and in a future version we'll switch it
over and remove the nose mode.

Ran rbintegrations tests via pytest and our test runner.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Add pytest mode to djblets.testing.testrunners.TestRunner.
We've mostly phased out nose from our own usage, but it's still being used for the extension test runner. The behavior is different enough that we need a transition period to move people over. In most cases, once extensions are configured in a way to make use of pytest, they'll be able to just run `pytest` instead of `rbext test`, but we also want latter to continue to exist. This change adds a mode to the TestRunner to use pytest instead of nose. That can be opted into for now, and in a future version we'll switch it over and remove the nose mode. Testing Done: Ran rbintegrations tests via pytest and our test runner.
fdfe4c1a38e20a6073bfbda6423769f1b84e1fea David Trowbridge
djblets/testing/testrunners.py
Loading...