Open chadrickman opened 4 years ago
Thanks for reporting.
I switched back to JUnit
test publisher in a new published version, but since the Devops package API have changed and isn't documented at all ... I hope it is still working.
Let me know!
@aloisdeniel This does appear to still be an issue. I'll run a build later tonight that has more logging to get more details. It's the same error though.
Still an issue here, same error as described above.
Same here
What is the status of this? We have the same problem here, all tests are passed but build fails because of Unknown Test Runner issue
Same here
As a work around, you can run the tests without publishing the results. To do this, comment out the Flutter test task and replace with this:
- task: CmdLine@2
displayName: 'Flutter Test'
inputs:
script: '$(FlutterToolPath)/flutter test'
workingDirectory: '$(Build.SourcesDirectory)'
##instead of##
# - task: aloisdeniel.flutter.flutter-test.FlutterTest@0
# displayName: 'Flutter Test'
# inputs:
# projectDirectory: '$(Build.SourcesDirectory)'
Is there a similar workaround, that works without having to modify the yaml? We can't use yml directly in devops, because we have an external git, only github, bitbucket cloud and devops git supports yml to configure pipelines for some annoying reason :(
Same here, any updates
I'm also getting this:
:facepalm: in case anyone cannot modify the yml to match what jaspermorgans workaround. It does work, just take notice that its not the same task, basically just running the unit test via command line. :facepalm:
I have added a check for publish results in my package.
I have added a check for publish results in my package.
@hey24sheep could you give an example of how you did that? I'm a Azure DevOps Pipelines beginner hehe
@josepmg I have highlighted the checkbox also the add button. Read this to get start easily. After that you could add "flutter tasks extension" and add "flutter test task". Check/Uncheck publish checkbox according to your need.
@josepmg I have highlighted the checkbox also the add button. Read this to get start easily. After that you could add "flutter tasks extension" and add "flutter test task". Check/Uncheck publish checkbox according to your need.
Thanks, @hey24sheep I'll try it right away
Temporary workaround (which also immediately improves the test report in the process) for me is to replace the Flutter Test task with these 3 tasks:
Write-Host "##vso[task.setvariable variable=PATH;]${env:PATH};$(FLUTTERTOOLPATH);$(FLUTTERTOOLPATH)\cache\dart-sdk\bin;$(FLUTTERTOOLPATH)\..\.pub-cache\bin";
flutter pub get && flutter pub global activate junitreport && flutter test --machine | tojunit --output TEST-report.xml
$(System.DefaultWorkingDirectory)
Even better: once https://github.com/flutter/flutter/issues/56675 is fixed it will even be possible to generate both a test report and coverage data at the same time by using --machine --coverage
This will especially be useful since I'm once again having issues making generation of the coverage data reliable, so I closed the PR for that.
junitreport version 1.3, that has just been released, is capable of handling the output of flutter test --machine --coverage
; it ignores the malformatted lines, generated by the extra --coverage
.
This is running on the newest updates from this morning.
Pool: Azure Pipelines Image: macOS-10.14 Agent: Hosted Agent