mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-15 22:07:09 +01:00
Simplify 'only-failed' to 'failed'
This commit is contained in:
parent
f55c0119bb
commit
96e91aa726
7 changed files with 29 additions and 25 deletions
|
|
@ -6,11 +6,8 @@ import {ParseOptions} from '../src/parsers/parser-types'
|
|||
import {getReport} from '../src/report/get-report'
|
||||
import {normalizeFilePath} from '../src/utils/file-utils'
|
||||
|
||||
|
||||
|
||||
describe('dotnet-trx tests', () => {
|
||||
it('matches report snapshot', async () => {
|
||||
|
||||
const fixturePath = path.join(__dirname, 'fixtures', 'dotnet-trx.trx')
|
||||
const outputPath = path.join(__dirname, '__outputs__', 'dotnet-trx.md')
|
||||
const xmlFixture = {
|
||||
|
|
@ -49,7 +46,7 @@ describe('dotnet-trx tests', () => {
|
|||
const result = await parseDotnetTrx([xmlFixture], opts)
|
||||
expect(result).toMatchSnapshot()
|
||||
|
||||
const report = getReport(result.testRuns, {listTests: 'only-failed'})
|
||||
const report = getReport(result.testRuns, {listTests: 'failed'})
|
||||
fs.mkdirSync(path.dirname(outputPath), {recursive: true})
|
||||
fs.writeFileSync(outputPath, report)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue