mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 06:47:09 +01:00
wip
This commit is contained in:
parent
14f84d35d8
commit
4e0b3d36b7
1 changed files with 6 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ class TestReporter {
|
||||||
const readStream = fs.createReadStream(a)
|
const readStream = fs.createReadStream(a)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const post = bent(this.resultsEndpoint, 'POST', null, 200);
|
const post = bent(this.resultsEndpoint, 'POST', {}, 200);
|
||||||
await post(`TestResults?Secret=${this.resultsEndpointSecret}`, readStream);
|
await post(`TestResults?Secret=${this.resultsEndpointSecret}`, readStream);
|
||||||
core.info(`Uploaded TRX files: ${a}`)
|
core.info(`Uploaded TRX files: ${a}`)
|
||||||
} catch (ex){
|
} catch (ex){
|
||||||
|
|
@ -131,6 +131,11 @@ class TestReporter {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const [reportName, files] of Object.entries(input)) {
|
for (const [reportName, files] of Object.entries(input)) {
|
||||||
|
|
||||||
|
if(reportName === 'artifactFilePaths') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
core.startGroup(`Creating test report ${reportName}`)
|
core.startGroup(`Creating test report ${reportName}`)
|
||||||
const tr = await this.createReport(parser, reportName, files)
|
const tr = await this.createReport(parser, reportName, files)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue