just copy paste of discussion for now. open point: parse xml from a sphinx-extension or generate needs.json from xml beforehand.
Parse test code
Pro:
- No need to execute the tests
- Possible to integrate it into custom LSP to get IDE Diagnostics (not very much usable benefit)
Con:
- Python specific: It's difficult to detect skipped tests reliably, as there are so many ways to skip tests in Python.
- Do not get test results (without executing tests which negates the first pro)
- Language specific parsing required
- No detection if test was ever executed (same as with links into source code!!)
What exactly we get:
- File and Line number of test cases ✔️
- parameters like TestType and DerivationTechnique, links to requirements, etc. ✔️
- skipped tests 🟡 (not reliably)
- test results (passed, failed) ❌
Parse test results (XML)
Pro:
- One parser for all (supported) languages, due to JunitXML standard
Problems:
- Need to run tests to get files to parse
What exactly we get:
- File and Line number of test cases 🟡 (python: not native, but extendable)
- parameters like TestType and DerivationTechnique, links to requirements, etc. 🟡 (not for skipped/disabled tests)
- skipped tests ✔️
- test results (passed, failed) ✔️
just copy paste of discussion for now. open point: parse xml from a sphinx-extension or generate needs.json from xml beforehand.
Parse test code
Pro:
Con:
What exactly we get:
Parse test results (XML)
Pro:
Problems:
What exactly we get: