Uploaded image for project: 'Managed Service - API'
  1. Managed Service - API
  2. MGDAPI-3745

Fail coverage prow check if unit test coverage decreases

XMLWordPrintable

    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Yes
    • Sprint 23

      WHY

      Test Driven Development has become more important to us because unit tests provide the ability to test logic in the code before running it in a cluster which helps with the cost of development. 

      We want to promote the use of unit testing by prompting pr creators when coverage decreases from the current value. 

      While reading the docs see is there any additional configuration that could h

      HOW
      Exclude folders that do not require unit tests
      Add a threshold to the coverage configuration for integreatly and probably cro as per the docs here -> https://docs.codecov.com/docs/commit-status#threshold

      TESTS
      Once the configuration is merged. Create a pr which reduces the unit test coverage and see that the prow test fails.

      DONE
      As TESTS

       

              dmoskale@redhat.com Denis Moskalenko
              lfitzger@redhat.com Laura Fitzgerald
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: