mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-02 11:25:21 -08:00
Compare commits
2 Commits
release/v2
...
chore/shad
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1c33c4c823 | ||
|
|
eea8b67eb1 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,17 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 2.1.1
|
|
||||||
* Fix error when a TestMethod element does not have a className attribute in a trx file https://github.com/dorny/test-reporter/pull/623
|
|
||||||
* Add stack trace from trx to summary https://github.com/dorny/test-reporter/pull/615
|
|
||||||
* List only failed tests https://github.com/dorny/test-reporter/pull/606
|
|
||||||
* Add type definitions to `github-utils.ts` https://github.com/dorny/test-reporter/pull/604
|
|
||||||
* Avoid split on undefined https://github.com/dorny/test-reporter/pull/258
|
|
||||||
* Return links to summary report https://github.com/dorny/test-reporter/pull/588
|
|
||||||
* Add step summary short summary https://github.com/dorny/test-reporter/pull/589
|
|
||||||
* Fix for empty TRX TestDefinitions https://github.com/dorny/test-reporter/pull/582
|
|
||||||
* Increase step summary limit to 1MiB https://github.com/dorny/test-reporter/pull/581
|
|
||||||
* Fix input description for list options https://github.com/dorny/test-reporter/pull/572
|
|
||||||
|
|
||||||
## 2.1.0
|
## 2.1.0
|
||||||
* Feature: Add summary title https://github.com/dorny/test-reporter/pull/568
|
* Feature: Add summary title https://github.com/dorny/test-reporter/pull/568
|
||||||
* Feature: Add Golang test parser https://github.com/dorny/test-reporter/pull/571
|
* Feature: Add Golang test parser https://github.com/dorny/test-reporter/pull/571
|
||||||
|
|||||||
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
@@ -837,12 +837,12 @@ class DotnetNunitParser {
|
|||||||
.map(suite => suite.$.name)
|
.map(suite => suite.$.name)
|
||||||
.join('.');
|
.join('.');
|
||||||
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name;
|
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name;
|
||||||
let existingSuite = result.find(existingSuite => existingSuite.name === suiteName);
|
let existingSuite = result.find(suite => suite.name === suiteName);
|
||||||
if (existingSuite === undefined) {
|
if (existingSuite === undefined) {
|
||||||
existingSuite = new test_results_1.TestSuiteResult(suiteName, []);
|
existingSuite = new test_results_1.TestSuiteResult(suiteName, []);
|
||||||
result.push(existingSuite);
|
result.push(existingSuite);
|
||||||
}
|
}
|
||||||
let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName);
|
let existingGroup = existingSuite.groups.find(group => group.name === groupName);
|
||||||
if (existingGroup === undefined) {
|
if (existingGroup === undefined) {
|
||||||
existingGroup = new test_results_1.TestGroupResult(groupName, []);
|
existingGroup = new test_results_1.TestGroupResult(groupName, []);
|
||||||
existingSuite.groups.push(existingGroup);
|
existingSuite.groups.push(existingGroup);
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "test-reporter",
|
"name": "test-reporter",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "test-reporter",
|
"name": "test-reporter",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.11.1",
|
"@actions/core": "^1.11.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "test-reporter",
|
"name": "test-reporter",
|
||||||
"version": "2.1.1",
|
"version": "2.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Presents test results from popular testing frameworks as Github check run",
|
"description": "Presents test results from popular testing frameworks as Github check run",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|||||||
@@ -77,13 +77,13 @@ export class DotnetNunitParser implements TestParser {
|
|||||||
.join('.')
|
.join('.')
|
||||||
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name
|
const groupName = suitesWithoutTheories[suitesWithoutTheories.length - 1].$.name
|
||||||
|
|
||||||
let existingSuite = result.find(existingSuite => existingSuite.name === suiteName)
|
let existingSuite = result.find(suite => suite.name === suiteName)
|
||||||
if (existingSuite === undefined) {
|
if (existingSuite === undefined) {
|
||||||
existingSuite = new TestSuiteResult(suiteName, [])
|
existingSuite = new TestSuiteResult(suiteName, [])
|
||||||
result.push(existingSuite)
|
result.push(existingSuite)
|
||||||
}
|
}
|
||||||
|
|
||||||
let existingGroup = existingSuite.groups.find(existingGroup => existingGroup.name === groupName)
|
let existingGroup = existingSuite.groups.find(group => group.name === groupName)
|
||||||
if (existingGroup === undefined) {
|
if (existingGroup === undefined) {
|
||||||
existingGroup = new TestGroupResult(groupName, [])
|
existingGroup = new TestGroupResult(groupName, [])
|
||||||
existingSuite.groups.push(existingGroup)
|
existingSuite.groups.push(existingGroup)
|
||||||
|
|||||||
Reference in New Issue
Block a user