Skip to content

About

Code Coverage (gates) example - monorepo with multiple sub-components

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

CodeScene Code Coverage examples: multiple source code components

This repository contains multiple source code components with unit tests. The purpose of the repo is to illustrate how CodeScene's code coverage gates work. As such, this repository is part of the CodeScene product documentation.

That documentation explains how to enable code coverage gates on your own repositories.

Using multiple Source Code Components

That is a repository hosting multiple different source code components - each with a separate build.

In our case, the modules are indentical, they just have different names:

  • calculator1
  • calculator2
  • calculator3

In .github/workflows, you will find corresponding build pipelines definitions.

The reusable check-coverage action takes a numeric project-id, passes it to cs-coverage check --project-id, and accepts an optional onprem-url for CodeScene On-prem. For Cloud projects, the action uses the CLI's default API URL.

About

Code Coverage (gates) example - monorepo with multiple sub-components

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages