BSD Ports

devel/py-test-check 2.9.1 NetBSD

Pytest plugin that allows multiple failures per test

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
23345b1b83
License
mit
Categories
devel, python
Package size
33.5 KiB, 159.2 KiB installed

Description

A pytest plugin that allows multiple failures per test.

Normally, a test function will fail and stop running with the first failed `assert`. That's totally fine for tons of kinds of software tests. However, there are times where you'd like to check more than one thing, and you'd really like to know the results of each check, even if one of them fails.

`pytest-check` allows multiple failed "checks" per test function, so you can see the whole picture of what's going wrong.

In the other systems

SystemPortVersion
NetBSDdevel/py-test-check2.9.1
OpenBSDdevel/py-test-check3.0.1

Install

Binary package:

pkgin install py311-test-check

From pkgsrc:

cd /usr/pkgsrc/devel/py-test-check && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_642.9.1
NetBSD 10.1 aarch642.8.0
SmartOS / illumos x86_643.0.3
macOS 15 arm643.0.3

Dependencies

Run dependencies 3

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-test-check-2.9.1, py313-test-check-2.9.1, py314-test-check-2.9.1

Commit history 3

DateCommitCreditsLog message
23345b1b83 adam py-test-check: updated to 3.0.3
3.0.3 Fixed - Second attempt to fix issue 210. - First attempt "seemed" fixed in the context of the in-process pytest runner, but failed as a subprocess. - I've added a subprocess run, and a fix. - Pretty sure it's fixed now.
dfe9450a55 adam py-test-check: updated to 3.0.1
3.0.1 Fixed - Truncate long local values in check pseudo tracebacks with `-l` or `-lv`, while preserving full values with `-lvv` (issue 208). Thanks [Neallin-917](https://github.com/Neallin-917) 3.0.0 Highlights - This plugin should now work fine with tests running in parallel with other plugins such as `pytest-run-parallel`, `pytest-swarm`, or `pytest-freethreaded`. Migration Notes - Failures raised in helper threads remain part of their parent test's report. When reading `check_log` from a worker thread, its failure state is now independent of other concurrently running threads. - Thanks [dpadninja](https://github.com/dpadninja) for getting the ball rolling on this Changed …
c7c186e804 adam py-test-check: updated to 2.9.1
2.9.1 Fixed - Fix [An issue with pytest-reportlog thanks to a suggestion from MV Seotlo - also the resulting code is a bit cleaner of a solution for the pseudo-traceback code. 2.9.0 Highlights - Added `--check-max-tb-line=<int>` to control one-line traceback output for additional failures. - Traceback output now supports two tiers: - full pseudo-tracebacks for early failures (`--check-max-tb`) - one-line traceback output for later failures (`--check-max-tb-line`) - Improved one-line traceback output for context-manager checks: - points to the failing line inside `with check:` blocks - includes exception type and message when available