Is there some way to have one "build-report" for t...
# gradle
j
Is there some way to have one "build-report" for the whole project? I have like 8 submodules each producing their own build reports when running tests and that makes it hard to upload to a CI like Github Actions.
e
You can do something like this to upload..
Copy code
-  name: Bundle the build report
            if: failure()
            run: find . -type d -name 'reports' | zip -@ -r build-reports.zip

         -  name: Upload the build report
            if: failure()
            uses: actions/upload-artifact@v4
            with:
               name: error-report
               path: build-reports.zip
But if you're only interested in test-reports, you could look into the test report aggregation plugin
👆 1
j
Yea thanks. I thought there was something to merge these test reports in gradle. Not sure if the test report aggregation plugin works with Kotlin MP
v
There is nothing built-in that allows to merge created reports. The test report aggregation plugin takes the input data for a test report from the aggregated projects and right away creates a combined report from these input data. Whether this would work with KMP probably depends on whether KMP is leveraging the test suites functionality, or at least configures feature variants with the necessary attributes for the test report aggregation plugin to find the data it needs. If not, it could probably be configured to work, by adding those variants yourself. But I have not used KMP before, so I cannot provide you with a ready-made example.