pytest-custom-scheduling: pytest plugin
Rewrite pytest-xdist pytest_xdist_make_scheduler function, Modify load scheduling.
Support custom grouping.
Rename testcases name and testcases nodeid, support allure report.
Change testcases nodeid and testcases name encoding to UTF-8 and unicode escape
- Format:
name: ids
nodeid: group_name::ids
install
pip install pytest-custom-scheduling
Usage
command line:pytest --switch={on:off} --rename={on:off} -n=auto
tip: pytest-xdist must be turned on
- options:
switch: Used to open plugin, default “off”
rename: Used to open rename, default “off”
Use {...} as a marker custom grouping.
Support “{ filename::classname }” format for multi-level settings
Demo
import pytest
@pytest.mark.parametrize("group",
["group_1", "group_2", "group_3", "group_4", "group_5", "group_6",
"group_7", "group_8", "group_9", "group_10", "group_11", "group_12"],
ids=["group_1{group_1}", "group_2{group_2}", "group_3{group_3}",
"group_4{group_4}", "group_5{group_5}", "group_6{group_6}",
"group_7{group_7}", "group_8{group_8}", "group_9{group_9}",
"group_10{group_10}", "group_11{group_11}", "group_12{group_12}"])
@pytest.mark.parametrize("group", ["group_4", "group_5", "group_6"],
ids=["group_4{group_5}", "group_5{group_5}", "group_6{group_5}"])
def test_05(group):
a = "hello"
b = "world"
assert a == b
cmd line: pytest --switch=on --rename=on -n=auto
Metadata
Release files for pytest-custom-scheduling 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-custom-scheduling-1.1.tar.gz | 3.2 kB | Without provenance | Details for pytest-custom-scheduling-1.1.tar.gz |
Release files / pytest-custom-scheduling-1.1.tar.gz
| Download URL | pytest-custom-scheduling-1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36e916fbcb2e61de1459ee09c982914dff26de6d5ce60be5866d0d7effbbc4cd
|
|
BLAKE2b-256 checksum How to use checksums |
10460657551e55bc84819240f8ab6310e462c8c631e573f9c2d1df31e3d88b99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.7.5
|
Security for pytest-custom-scheduling 1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.