-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: meta-data at test suite level (#41)
- Loading branch information
1 parent
67f113f
commit 51887a2
Showing
17 changed files
with
460 additions
and
249 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "test-results-parser", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Parse test results from JUnit, TestNG, xUnit, cucumber and many more", | ||
"main": "src/index.js", | ||
"types": "./src/index.d.ts", | ||
|
@@ -22,7 +22,8 @@ | |
"result", | ||
"automation", | ||
"mocha", | ||
"cucumber" | ||
"cucumber", | ||
"nUnit" | ||
], | ||
"author": "Anudeep <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
export type CucumberResult = { | ||
status: string; | ||
duration: number; | ||
}; | ||
|
||
export type CucumberMatch = { | ||
location: string; | ||
}; | ||
|
||
export type CucumberArgument = { | ||
arguments: any[]; | ||
keyword: string; | ||
line: number; | ||
name: string; | ||
match: CucumberMatch; | ||
result: CucumberResult; | ||
}; | ||
|
||
export type CucumberStep = { | ||
arguments: any[]; | ||
keyword: string; | ||
line: number; | ||
name: string; | ||
match: CucumberMatch; | ||
result: CucumberResult; | ||
}; | ||
|
||
export type CucumberTag = { | ||
name: string; | ||
line: number; | ||
}; | ||
|
||
export type CucumberElement = { | ||
description: string; | ||
id: string; | ||
keyword: string; | ||
line: number; | ||
name: string; | ||
steps: CucumberStep[]; | ||
tags: CucumberTag[]; | ||
type: string; | ||
}; | ||
|
||
export type CucumberFeature = { | ||
description: string; | ||
elements: CucumberElement[]; | ||
id: string; | ||
line: number; | ||
keyword: string; | ||
name: string; | ||
tags: CucumberTag[]; | ||
uri: string; | ||
}; | ||
|
||
export type CucumberJsonResult = CucumberFeature[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
export type JUnitProperty = { | ||
'@_name': string; | ||
'@_value': string; | ||
} | ||
|
||
export type JUnitProperties = { | ||
property: JUnitProperty[]; | ||
} | ||
|
||
export type JUnitFailure = { | ||
'#text': string; | ||
'@_message': string; | ||
'@_type': string; | ||
} | ||
|
||
export type JUnitTestCase = { | ||
properties?: JUnitProperties; | ||
failure?: JUnitFailure[]; | ||
'@_id': string; | ||
'@_name': string; | ||
'@_time': number; | ||
} | ||
|
||
export type TestSuite = { | ||
properties?: JUnitProperties; | ||
testcase: JUnitTestCase[]; | ||
'@_id': string; | ||
'@_name': string; | ||
'@_tests': number; | ||
'@_failures': number; | ||
'@_time': number; | ||
} | ||
|
||
export type JUnitResult = { | ||
testsuite: JUnitTestSuite[]; | ||
'@_id': string; | ||
'@_name': string; | ||
'@_tests': number; | ||
'@_failures': number; | ||
'@_errors': string; | ||
'@_time': number; | ||
} | ||
|
||
export type JUnitResultJson = { | ||
'?xml': { | ||
'@_version': number; | ||
'@_encoding': string; | ||
}; | ||
testsuites: JUnitResult[]; | ||
} | ||
|
Oops, something went wrong.