From a1fcaf6efd36123f8d31df8969afd6864af09184 Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Wed, 7 Aug 2019 08:20:46 +0200 Subject: [PATCH] chore: fail on test failure (#4259) --- .azure/steps.yml | 2 -- azure-pipelines.yml | 5 ----- test/manager/maven/index.spec.ts | 6 ++++++ 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.azure/steps.yml b/.azure/steps.yml index 8b0efb0a6f..bd61196271 100644 --- a/.azure/steps.yml +++ b/.azure/steps.yml @@ -41,7 +41,6 @@ steps: - pwsh: yarn jest -i --ci --reporters=default --reporters=jest-junit --coverageReporters=text-summary --coverageReporters=cobertura displayName: 'Unit Tests' - continueOnError: true - task: PublishTestResults@2 inputs: @@ -54,7 +53,6 @@ steps: inputs: codeCoverageTool: Cobertura summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/*coverage.xml' - reportDirectory: '$(System.DefaultWorkingDirectory)/**/coverage' displayName: 'Publish coverage results' - pwsh: yarn test-e2e diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 971c4fe985..c1e02f25b1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,11 +30,6 @@ jobs: git config --global core.autocrlf false git config --global core.symlinks true displayName: 'Preserve LF endings and symbolic links on check out' - - task: PowerShell@2 - inputs: - targetType: 'inline' - script: Set-MpPreference -DisableRealtimeMonitoring $true - displayName: 'Disable defender' - template: .azure/steps.yml diff --git a/test/manager/maven/index.spec.ts b/test/manager/maven/index.spec.ts index 783d0ac3bf..1f43c9c35f 100644 --- a/test/manager/maven/index.spec.ts +++ b/test/manager/maven/index.spec.ts @@ -49,6 +49,12 @@ describe('manager/maven', () => { it('should return package files info', async () => { platform.getFile.mockReturnValueOnce(pomContent); const packages = await extractAllPackageFiles({}, ['random.pom.xml']); + // windows path fix + for (const p of packages) { + if (p.parent) { + p.parent = p.parent.replace(/\\/g, '/'); + } + } expect(packages).toMatchSnapshot(); }); }); -- GitLab