tewip-ai 0.18.1 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,6 +116,9 @@ function junitCases(root, workspace) {
|
|
|
116
116
|
}
|
|
117
117
|
out.push({ testId, file: file || (testcase.attrs.classname ?? '').trim(), duration: Number.isFinite(seconds) ? Math.round(seconds * 1000) : 0, attempts });
|
|
118
118
|
};
|
|
119
|
+
// <testrun> is the root Eclipse's JUnit runner and Ant write; everything inside it is ordinary
|
|
120
|
+
// JUnit XML. A real report in that shape was rejected outright as "no test report Tewip can
|
|
121
|
+
// read", which is a poor answer to a file holding 36 perfectly readable results.
|
|
119
122
|
walk(root, root.name === 'testsuite' ? root : undefined);
|
|
120
123
|
// Attempts whose error the runner did not record borrow the final one's, when there is one.
|
|
121
124
|
for (const c of out) {
|
|
@@ -249,7 +252,7 @@ export function importJunit(path, meta) {
|
|
|
249
252
|
if (start && (!startedAt || start < startedAt))
|
|
250
253
|
startedAt = start;
|
|
251
254
|
}
|
|
252
|
-
else if (root.name === 'testsuites' || root.name === 'testsuite') {
|
|
255
|
+
else if (root.name === 'testsuites' || root.name === 'testsuite' || root.name === 'testrun') {
|
|
253
256
|
cases = junitCases(root, meta.workspace);
|
|
254
257
|
const stamp = root.attrs.timestamp ?? root.children.find((c) => c.name === 'testsuite')?.attrs.timestamp;
|
|
255
258
|
if (stamp && (!startedAt || stamp < startedAt))
|
|
@@ -317,7 +320,7 @@ export function importJunit(path, meta) {
|
|
|
317
320
|
if (unread.length > 0) {
|
|
318
321
|
const list = unread.slice(0, 5).join(', ');
|
|
319
322
|
if (parsedFiles === 0) {
|
|
320
|
-
throw new Error(`no test report Tewip can read in ${path}: ${list}. It reads JUnit XML (<testsuites>/<testsuite>), NUnit 3 (<test-run>), .NET TRX (<TestRun>), ` +
|
|
323
|
+
throw new Error(`no test report Tewip can read in ${path}: ${list}. It reads JUnit XML (<testsuites>/<testsuite>/<testrun>), NUnit 3 (<test-run>), .NET TRX (<TestRun>), ` +
|
|
321
324
|
'Robot Framework output.xml (<robot>), JMeter .jtl (<testResults>) and a k6 summary (--summary-export). ' +
|
|
322
325
|
'Most runners can write JUnit XML; for TestNG use the Surefire report, and for NUnit use --result=x.xml.');
|
|
323
326
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tewip-ai",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "Tewip finds why each failing test failed - real bug, flaky test, environment, test data or changed selector - for any stack, from the command line, CI, or your editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"test-failures",
|