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:
Patrik Husfloen 2023-06-08 14:38:57 +02:00
parent e9fa2f582c
commit 0351b3f450
4 changed files with 17 additions and 3 deletions

View file

@ -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) {