I am migrating one of my project from git- bitbucket to azure devops. While migrating, I am running my tests builds( Running test cases) even though the build is success but some test orders are not triggering and i am getting the message saying: "No tests result files matching D:\build\V1_w\1\s\tests\target\surefire-reports*.xml" were found. So, publishing JUnit tests results is being skipped"
After this step "Create zip with failed tests info" step is running for creating zip file for failed tests info. and build is getting failed with error message saying "##[error]Error: ENOENT: No such file or directory, stat D:\build\V1_w\1\s\tests\target\surefire-reports*.xml"
Actually there is some different folder / file structure Azure have where it stores the test result. I have already tried the below variables in order to get the tests result
$(Build.ArtifactStagingDirectory)
$(System.DefaultWorkingDirectory)
$(Build.BinariesDirectory)
Please let me help to resolve the issue. Since I don't have much reputation point! I cannot post the screenshot / full logs.
Yaml Script:
trigger:
- master
pool: vmImage: ubuntu-latest
steps:
- checkout: self
- checkout: project-test-tool
- task: Maven@3
inputs: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' jdkVersionOption: '1.8' jdkArchitectureOption: 'x64' searchFolder: '$(System.DefaultWorkingDirectory)' testResultsFormat: 'JUnit' publishJUnitResults: 'true' testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package'
TIA...