We're happy to announce better support for monorepos, including Carryforward Flags and UI improvements like the Monorepo Layout Setting.
We know you don't want to build every subproject in your monorepo every time one of your teams submits a PR. So from now on, only send coverage reports for the subprojects you’re building in CI. We’ll carry forward the last coverage report for all the other subprojects and calculate total coverage like any other parallel build:
We also know you think about your monorepos differently from users with regular projects, so we've updated our UI with a Monorepo Layout Setting to switch up the layout for monorepos:
This new option labels subprojects clearly and better isolates coverage reporting between them:
First, if you haven't already, opt-in to Carryforward Flags:
Here's how to configure a parallel build to carry forward some of its coverage reports when they are missing from a build ✢:
flag-name to name each job:
run: key with a
curl command as its value, like this:
?carryforward= URL param to the end of that call's URL and append a list of flag names for all subprojects whose coverage reports should be carried forward when they are missing:
✢ Note: Currently, no Coveralls integrations support Carryforward Flags out-of-the-box. We will fix that once we release official support for the feature.