mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Set listTests and listSuites to lower detail if report is too big
This commit is contained in:
parent
603e84536d
commit
32f5b23752
5 changed files with 109 additions and 43 deletions
|
|
@ -43,7 +43,7 @@ describe('dotnet-trx tests', () => {
|
|||
const result = await parser.parse(filePath, fileContent)
|
||||
expect(result).toMatchSnapshot()
|
||||
|
||||
const report = getReport([result], {listTests: 'failed'})
|
||||
const report = getReport([result])
|
||||
fs.mkdirSync(path.dirname(outputPath), {recursive: true})
|
||||
fs.writeFileSync(outputPath, report)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue