Skip to content

Commit e3f8e60

Browse files
committed
Let's try test reporting
1 parent 477b9ed commit e3f8e60

File tree

5 files changed

+11
-2
lines changed

5 files changed

+11
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Make HTML Docs
3434
run: |
3535
pip install -e .[memprof,mpi,test,docs]
36+
pytest --junit-xml=test_results.xml -n 4 armi
3637
cd doc
3738
git submodule init
3839
git submodule update

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
# No build artifacts
88
*.dll
99
*.lib
10-
.apidocs/
1110
/bin
1211
armi/tests/tutorials/case-suite
1312
bin/*
@@ -17,6 +16,7 @@ coverage.xml
1716
coverage_results.*
1817
dist-*/
1918
dist/
19+
doc/.apidocs
2020
doc/_build
2121
doc/anl-afci-177
2222
doc/gallery
@@ -26,6 +26,7 @@ doc/tutorials/case-suite
2626
doc/user/tutorials
2727
htmlcov/
2828
monkeytype.*
29+
test_results.*
2930
wheelhouse
3031

3132
# No workspace crumbs

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def setup(app):
351351
"sphinx.ext.viewcode",
352352
"sphinx_gallery.gen_gallery",
353353
"sphinx_needs", # needed for requirements tracking
354+
"sphinxcontrib.test_reports",
354355
"sphinx_rtd_theme", # needed here for loading jquery in sphinx 6
355356
"sphinx_simplepdf",
356357
"sphinxcontrib.apidoc",
@@ -614,8 +615,8 @@ def setup(app):
614615
dict(option="implements", incoming="implementations", outgoing="requirements"),
615616
]
616617

618+
# TODO: JOHN Do I need or like these templates and layouts?
617619
needs_template_folder = os.path.join(STATIC_DIR, "needs_templates")
618-
619620
needs_layouts = {
620621
"test_layout": {
621622
"grid": "simple",

doc/qa_docs/str.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ Software Test Report (STR)
22
==========================
33

44
TBD
5+
6+
.. test-results:: ../test_results.xml
7+
8+
TODO

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ docs = [
108108
"sphinxcontrib-apidoc==0.3.0", # More easily document our API
109109
"sphinxext-opengraph==0.8.2", # Generates OpenGraph metadata to make good-looking cards on social media
110110
"sphinx-needs==2.1.0", # Requirements traceability matrices for QA
111+
"sphinx-test-reports",
111112
"sphinxcontrib-plantuml==0.25", # UML support in sphinx-needs
113+
"unittest-xml-reporting",
112114
"pandoc", # Must be in the path (to convert file formats)
113115
"ipykernel==6.25.1", # iPython kernel to run Jupyter notebooks
114116
"pylint==2.17.5", # Generates UML diagrams

0 commit comments

Comments
 (0)