Skip to content

Commit

Permalink
towards a release
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 7, 2024
1 parent fc431c3 commit b6efa17
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CITATION
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions FUNDING
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Centrum Wiskunde & Informatica, SWAT group (2021-...)
2 changes: 2 additions & 0 deletions RELEASE-NOTES
Original file line number Diff line number Diff line change
Expand Up @@ -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.
49 changes: 49 additions & 0 deletions src/lang/xml/junit-report/TestSuites.rsc
Original file line number Diff line number Diff line change
@@ -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)
;

0 comments on commit b6efa17

Please sign in to comment.