vendredi 20 décembre 2019

How to Run Bazel Tests Before Starting Build (Also of all Dependencies)

I am working on a monorepo. Thus there are many packages in one repository.

Goal

Run tests before building a package. But not only the tests of this one package should be run, but also the tests of the dependencies (every level of dependency).

Example

Suppose there are 3 packages:

  • server
  • utils
  • data

server depends on data and data depends on utils

and I want to build the server package.

So before the build starts, it should run all tests of all 3 packages (because server depends on both other packages)

Aucun commentaire:

Enregistrer un commentaire