diff --git a/CITATION b/CITATION new file mode 100644 index 0000000..24237f4 --- /dev/null +++ b/CITATION @@ -0,0 +1,3 @@ +Python-air was not released yet. Please wait for the Zenodo link to appear shortly. + +http://www.github.com/cwi-swat/python-air diff --git a/FUNDING b/FUNDING new file mode 100644 index 0000000..60d3687 --- /dev/null +++ b/FUNDING @@ -0,0 +1 @@ +* Centrum Wiskunde & Informatica, SWAT group (2021-...) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1eb2657..1f603f7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -6,4 +6,6 @@ * executes that Python program using util::ShellExec::exec * reads the JSON and normalizes it towards a Rascal AST shape * takes care to retain position information on all AST nodes +* lang::xml::junit contains XML bindings for JUnit test suite reports. + * this should probably be in the standard library in the future. * this is quite experimental for now. diff --git a/src/lang/xml/junit-report/TestSuites.rsc b/src/lang/xml/junit-report/TestSuites.rsc new file mode 100644 index 0000000..3bc0ff7 --- /dev/null +++ b/src/lang/xml/junit-report/TestSuites.rsc @@ -0,0 +1,49 @@ +module lang::xml::\junit-report::TestSuites + +import DateTime; + +data TestSuites + = testsuites( + Properties properties, + list[TestSuite] suites, + int disabled=0, + int errors=0, + int failures=0, + str name="test suite", + int tests=0, + int time=0 + ); + +data Properties + = properties(list[Property] properties); + +data Property + = property(str name="", str \value=""); + +data TestSuite + = testsuite( + list[TestCase] cases, + str name="test suite", + int tests=0, + int disabled=0, + int errors=0, + int failures=0, + str hostname="localhost", + int id=0, + str package="", + int skipped=0, + int time=0, + datetime timestamp=now() + ); + +data TestCase + = testcase(TestResult result, str name="", int assertions=0, str classname="", int time=0); + +data TestResult + = skipped(str message) + | error(str text, str message="", str \type="") + | failure(str text, str message="", str \type="") + | \system-out(str text) + | \system-err(str text) + ; +