GoogleCloudPlatform / GoogleCloudPlatform/cloud-foundation-toolkit

Change aware tests

Open
#1,727 3 comments 0 reactions 1 assignee Claimed by @g-awmalik View on GitHub
triaged
Dominant language
Go
Stars
1.1k
Forks
493
Avg merge
4h 12m
Merged PRs (30d)
1

Description

Currently we run all tests for each PR irrespective of which files have changed. It would be nice if we can test just what was modified based on changed files.

Each blueprint test knows which root module it actuates so an initial version of this could do a git diff and understand if changed files affect current module and t.Skip if is not changed. However we likely need some rules like any changes to a module/submodule should override this heuristic and run all tests regardless.

Further if we can become config aware, i.e example foo which is the test root module uses module bar, we could restrict the tests that way too.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.