kubewarden / kubewarden-controller

Manage admission policies in your Kubernetes cluster with ease
https://kubewarden.io
Apache License 2.0
189 stars 33 forks source link

Test reorganization #731

Closed jvanz closed 5 months ago

jvanz commented 5 months ago

Description

This PR is a spin off from #730. It contains all the test enhancements and fixes done on that PR except the tests for the changes related to that PR. The goal here is to split two major change from #730 into single purpose PRs. Therefore, this PR contains all the changes to the integrations tests to make all the "specs" (tests) independent allowing us to run each one individually. Furthermore, new cli flag has been added to make Ginkgo randomize all the tests in our suite. Otherwise, it will randomize only the "Describe" test containers.

Related to https://github.com/kubewarden/kubewarden-controller/issues/723

make test
codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 71.02%. Comparing base (37204f4) to head (89c617f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #731 +/- ## =========================================== + Coverage 51.13% 71.02% +19.89% =========================================== Files 28 28 Lines 2071 2071 =========================================== + Hits 1059 1471 +412 + Misses 905 459 -446 - Partials 107 141 +34 ``` | [Flag](https://app.codecov.io/gh/kubewarden/kubewarden-controller/pull/731/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | Coverage Δ | | |---|---|---| | [integration-tests](https://app.codecov.io/gh/kubewarden/kubewarden-controller/pull/731/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | `59.48% <ø> (-10.18%)` | :arrow_down: | | [unit-tests](https://app.codecov.io/gh/kubewarden/kubewarden-controller/pull/731/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden) | `44.75% <ø> (-0.82%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=kubewarden#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.