From 8f1a35257599f959f0cab7ed6753345d495f6022 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 7 Apr 2020 21:53:36 -0500 Subject: [PATCH] is it the message? --- .github/workflows/test.yml | 2 +- dist/index.js | 2 +- src/nunit.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5edad44..d4b6f88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,4 +22,4 @@ jobs: with: path: '__tests__/*.xml' access-token: ${{secrets.GITHUB_TOKEN}} - numFailures: 4 + numFailures: 5 diff --git a/dist/index.js b/dist/index.js index 1256d34..996ff20 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2264,7 +2264,7 @@ function testCaseAnnotation(testcase) { const stacktrace = 'stack-trace' in testcase.failure ? testcase.failure['stack-trace'].substring(0, 65536) : ''; - return new Annotation(sanitizedFilename, lineno, lineno, 0, 0, 'failure', `Failed test ${methodname} in ${classname}`, message, stacktrace); + return new Annotation(sanitizedFilename, lineno, lineno, 0, 0, 'failure', `Failed test ${methodname} in ${classname}`, 'message', stacktrace); } exports.testCaseAnnotation = testCaseAnnotation; function testCaseDetails(testcase) { diff --git a/src/nunit.ts b/src/nunit.ts index 3789214..27115f8 100644 --- a/src/nunit.ts +++ b/src/nunit.ts @@ -60,7 +60,7 @@ export function testCaseAnnotation(testcase: any): Annotation { 0, 'failure', `Failed test ${methodname} in ${classname}`, - message.substring(0,25), + 'message', stacktrace ) }