ub-test-reports 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 useblocks
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.5
2
+ Name: ub-test-reports
3
+ Version: 1.0.0
4
+ Summary: Test results as needs without Sphinx: report parsers, the needs.json converter and the pytest plugin
5
+ Keywords: test-reports,junit,needs.json,sphinx-needs,pytest
6
+ Author-email: team useblocks <info@useblocks.com>
7
+ Requires-Python: >=3.11,<4
8
+ Description-Content-Type: text/x-rst
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Framework :: Pytest
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: MIT License
13
+ Classifier: Operating System :: OS Independent
14
+ Classifier: Programming Language :: Python
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Programming Language :: Python :: 3.14
21
+ Classifier: Topic :: Software Development :: Testing
22
+ Classifier: Typing :: Typed
23
+ License-File: LICENSE
24
+ Requires-Dist: lxml
25
+ Requires-Dist: ub-project>=1.1.0,<2
26
+ Requires-Dist: pytest>=7.0 ; extra == "pytest"
27
+ Project-URL: Changelog, https://github.com/useblocks/sphinx-needs/blob/master/packages/ub-test-reports/docs/changelog.rst
28
+ Project-URL: Documentation, https://sphinx-test-reports.readthedocs.io/en/latest/
29
+ Project-URL: Issues, https://github.com/useblocks/sphinx-needs/issues
30
+ Project-URL: Repository, https://github.com/useblocks/sphinx-needs
31
+ Provides-Extra: pytest
32
+ Import-Name: ub_test_reports
33
+
34
+ ub-test-reports
35
+ ===============
36
+
37
+ A tool for the sphinx-needs family -- not a Sphinx extension, and nothing to add to
38
+ ``conf.py``.
39
+
40
+ It turns test results into needs without running Sphinx, and holds everything about test
41
+ reports that does not need a documentation build:
42
+
43
+ - **the parsers** -- JUnit XML (pytest, googletest, ctest, nose and friends) and
44
+ tox-envreport style JSON;
45
+ - **the result vocabulary** -- one spelling for every outcome, whichever report it came
46
+ from;
47
+ - **deterministic case IDs** -- the same case gets the same need ID in every run;
48
+ - **the** ``[test_reports]`` **model** of ``ubproject.toml``, read through ``ub-project``;
49
+ - **the converter** -- the ``test-reports build needs`` command, which writes a
50
+ ``needs.json`` that sphinx-needs can import;
51
+ - **the pytest plugin** -- ``-p ub_test_reports.pytest_plugin``, which shapes the JUnit XML
52
+ pytest writes (source locations, per-case properties for traceability).
53
+
54
+ Install the converter with::
55
+
56
+ pip install ub-test-reports
57
+
58
+ and the pytest plugin with::
59
+
60
+ pip install "ub-test-reports[pytest]"
61
+
62
+ To show the same reports inside a Sphinx documentation build, install the extension,
63
+ ``sphinx-test-reports``, which depends on this package.
64
+
65
+ Documentation: the "Without Sphinx" section of https://sphinx-test-reports.readthedocs.io/en/latest/
66
+
@@ -0,0 +1,32 @@
1
+ ub-test-reports
2
+ ===============
3
+
4
+ A tool for the sphinx-needs family -- not a Sphinx extension, and nothing to add to
5
+ ``conf.py``.
6
+
7
+ It turns test results into needs without running Sphinx, and holds everything about test
8
+ reports that does not need a documentation build:
9
+
10
+ - **the parsers** -- JUnit XML (pytest, googletest, ctest, nose and friends) and
11
+ tox-envreport style JSON;
12
+ - **the result vocabulary** -- one spelling for every outcome, whichever report it came
13
+ from;
14
+ - **deterministic case IDs** -- the same case gets the same need ID in every run;
15
+ - **the** ``[test_reports]`` **model** of ``ubproject.toml``, read through ``ub-project``;
16
+ - **the converter** -- the ``test-reports build needs`` command, which writes a
17
+ ``needs.json`` that sphinx-needs can import;
18
+ - **the pytest plugin** -- ``-p ub_test_reports.pytest_plugin``, which shapes the JUnit XML
19
+ pytest writes (source locations, per-case properties for traceability).
20
+
21
+ Install the converter with::
22
+
23
+ pip install ub-test-reports
24
+
25
+ and the pytest plugin with::
26
+
27
+ pip install "ub-test-reports[pytest]"
28
+
29
+ To show the same reports inside a Sphinx documentation build, install the extension,
30
+ ``sphinx-test-reports``, which depends on this package.
31
+
32
+ Documentation: the "Without Sphinx" section of https://sphinx-test-reports.readthedocs.io/en/latest/
@@ -0,0 +1,60 @@
1
+ [project]
2
+ name = "ub-test-reports"
3
+ version = "1.0.0"
4
+ description = "Test results as needs without Sphinx: report parsers, the needs.json converter and the pytest plugin"
5
+ authors = [{ name = "team useblocks", email = "info@useblocks.com" }]
6
+ license = { file = "LICENSE" }
7
+ readme = "README.rst"
8
+ requires-python = ">=3.11,<4"
9
+ # NO Sphinx, docutils or sphinx-needs, and that is the package's whole contract: the
10
+ # converter runs as a build action and the plugin inside a test run, neither of which has a
11
+ # documentation toolchain. ub-project is the `ubproject.toml` reader, TIGHT-tracked like
12
+ # every intra-workspace edge (`check_workspace.py` check (4)); `propagate_floors.py` moves
13
+ # the floor at each ub-project release. The `toolchain-free` CI job installs the built wheel
14
+ # where Sphinx is absent and runs the whole suite there
15
+ dependencies = ["lxml", "ub-project>=1.1.0,<2"]
16
+ keywords = ["test-reports", "junit", "needs.json", "sphinx-needs", "pytest"]
17
+ # NOT `Framework :: Sphinx`: nothing here depends on Sphinx
18
+ classifiers = [
19
+ "Development Status :: 5 - Production/Stable",
20
+ "Framework :: Pytest",
21
+ "Intended Audience :: Developers",
22
+ "License :: OSI Approved :: MIT License",
23
+ "Operating System :: OS Independent",
24
+ "Programming Language :: Python",
25
+ "Programming Language :: Python :: 3",
26
+ "Programming Language :: Python :: 3 :: Only",
27
+ "Programming Language :: Python :: 3.11",
28
+ "Programming Language :: Python :: 3.12",
29
+ "Programming Language :: Python :: 3.13",
30
+ "Programming Language :: Python :: 3.14",
31
+ "Topic :: Software Development :: Testing",
32
+ "Typing :: Typed",
33
+ ]
34
+
35
+ [project.optional-dependencies]
36
+ # The pytest plugin (`-p ub_test_reports.pytest_plugin`); pytest is not a dependency of the
37
+ # converter. 7.0 is where everything the plugin uses exists (pytest.Config/Item/Mark,
38
+ # Config.stash, issue_config_time_warning). pytest before 7.3.2 does not run on Python
39
+ # 3.12 at all -- that floor is pytest's own, not this one's. The `plugin-floor` CI job runs
40
+ # the whole suite on pytest 7.0.1 (Python 3.11) and 7.3.2 (Python 3.12).
41
+ pytest = ["pytest>=7.0"]
42
+
43
+ [project.scripts]
44
+ test-reports = "ub_test_reports.cli:main"
45
+
46
+ [project.urls]
47
+ Documentation = "https://sphinx-test-reports.readthedocs.io/en/latest/"
48
+ Repository = "https://github.com/useblocks/sphinx-needs"
49
+ Issues = "https://github.com/useblocks/sphinx-needs/issues"
50
+ Changelog = "https://github.com/useblocks/sphinx-needs/blob/master/packages/ub-test-reports/docs/changelog.rst"
51
+
52
+ [build-system]
53
+ requires = ["flit_core >=3.4,<5"]
54
+ build-backend = "flit_core.buildapi"
55
+
56
+ # Deliberately NO `[tool.flit.sdist]`: flit's default sdist is the module (with its
57
+ # `py.typed` marker and `schemas/JUnit.xsd`), README, LICENSE and this file, and nothing
58
+ # else -- so neither `tests/` (and its fixture copies) nor `docs/` ships. Everything else --
59
+ # ruff, ty, pytest and the dependency groups -- is the ROOT's, and
60
+ # `tools/src/sn_tools/check_workspace.py` refuses those tables here.
@@ -0,0 +1,17 @@
1
+ """ub-test-reports: test results as needs, without Sphinx.
2
+
3
+ The report parsers, the result vocabulary, the deterministic case IDs, the
4
+ ``[test_reports]`` model of ``ubproject.toml``, the needs.json converter behind the
5
+ ``test-reports`` command, and the pytest plugin (``-p ub_test_reports.pytest_plugin``).
6
+ The modules are the API; this file only carries the version.
7
+
8
+ **Nothing in this package may import Sphinx, sphinx-needs or docutils** -- not at module
9
+ level and not in a function body. sphinx-test-reports, the Sphinx extension, depends on
10
+ this package, never the other way round.
11
+ """
12
+
13
+ __all__ = ["__version__"]
14
+
15
+ #: Checked against ``[project] version`` by ``check_workspace.py`` and stamped by
16
+ #: ``poe bump``.
17
+ __version__ = "1.0.0"