Should the flutter step automatically enable junit, or do I need to manually add that myself?

When flutter-test is running, it gives me the following failure:

$ flutter "test" "--machine" "--coverage" | tojunit "--output" "flutter_junit_test_results.xml"

Can't load Kernel binary: Invalid kernel binary format version.

junitreport as globally activated doesn't support Dart 2.17.6, try: dart pub global activate junitreport

I added the following step to my workflow before the test step to get it to work:

  step-enable-junit:
    steps:
      - script@1:
          inputs:
            - content: |-
                #!/usr/bin/env bash
                flutter pub global activate junitreport

Shouldn’t flutter-test be automatically including this?

1 Like