We may have a single test configured to run in multiple stages for valid and useful reasons. However, we should not needlessly mindlessly run the same tests on the same code in different stages. For example, the bats test run by the dotfiles repo takes five minutes and is run multiple times before pushing and on CI.
the task here is to build a logical path and sequence of tests, and skip those in later stages that were already performed and proven in earlier stages.
generally earlier stages are less expensive in time and money.
We may have a single test configured to run in multiple stages for valid and useful reasons. However, we should not needlessly mindlessly run the same tests on the same code in different stages. For example, the bats test run by the dotfiles repo takes five minutes and is run multiple times before pushing and on CI.
the task here is to build a logical path and sequence of tests, and skip those in later stages that were already performed and proven in earlier stages.
generally earlier stages are less expensive in time and money.