mirror of
https://github.com/dorny/test-reporter.git
synced 2025-12-17 14:57:09 +01:00
Added build-directory parameter
Used to override the working directory for when the source was build under a different path
This commit is contained in:
parent
e9fa2f582c
commit
0351b3f450
4 changed files with 17 additions and 3 deletions
|
|
@ -145,6 +145,7 @@ export class DotnetTrxParser implements TestParser {
|
|||
return undefined
|
||||
}
|
||||
|
||||
|
||||
const message = test.error.Message[0]
|
||||
const stackTrace = test.error.StackTrace[0]
|
||||
let path
|
||||
|
|
@ -168,11 +169,11 @@ export class DotnetTrxParser implements TestParser {
|
|||
const lines = stackTrace.split(/\r*\n/)
|
||||
const re = / in (.+):line (\d+)$/
|
||||
const {trackedFiles} = this.options
|
||||
|
||||
for (const str of lines) {
|
||||
const match = str.match(re)
|
||||
if (match !== null) {
|
||||
const [_, fileStr, lineStr] = match
|
||||
|
||||
const filePath = normalizeFilePath(fileStr)
|
||||
const workDir = this.getWorkDir(filePath)
|
||||
if (workDir) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue