Open james-powis opened 4 years ago
Hi @james-powis, it would require few things:
I have just once used testdoc tool, but I think that nesting tests may be important here. Flattening test cases might end up in fogging overall view.
I think adding the tests into the view would be a killer feature. I hope we get this!
Frontend changes:
s1-s2-s3-t14
where s stands for suite and t for test. Using this approach would be most simple one. Using Material UI card-collection seems like a way to go. Each card would hold data such as number of test cases, suite documentation, suite tags, setup, teardown and path to suite. Clicking each card would allow drill down into next suites, up to test level, with same info as above. Backend changes:
id, level (ie. s1-s2-t14), name, doc, tags, testcase number, setup, teardown, path
. Relation woould be similar to Collection and nested Keywords with Suites and Testcases.s2-s1-t14
)CLI changes:
from robot.testdoc import TestSuiteFactory
from pathlib import Path
dir = Path.cwd() / ".." / ".." / "tests" / "acceptance" suite = TestSuiteFactory(str(dir)).suites
@pbylicki what do You think?
Libdoc does keywords Testdoc does testcases
What would the effort be to add testcase documentation to the tooling?