mirror of
https://github.com/dorny/test-reporter.git
synced 2026-02-01 10:55:23 -08:00
fix(java-junit): stack trace line can start with whitespaces
Fixes #208
This commit is contained in:
@@ -25,6 +25,15 @@ describe('parseStackTraceLine tests', () => {
|
||||
lineStr: '29'
|
||||
})
|
||||
})
|
||||
|
||||
it('starts with whitespaces', async () => {
|
||||
const line = " \tat org.apache.pulsar.AddMissingPatchVersionTest.testVersionStrings(AddMissingPatchVersionTest.java:29)"
|
||||
expect(parseStackTraceElement(line)).toEqual({
|
||||
tracePath: "org.apache.pulsar.AddMissingPatchVersionTest.testVersionStrings",
|
||||
fileName: "AddMissingPatchVersionTest.java",
|
||||
lineStr: "29"
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Kotlin class', () => {
|
||||
|
||||
Reference in New Issue
Block a user