build_verify icon indicating copy to clipboard operation
build_verify copied to clipboard

Clean cached build file before running the test.

Open chunhtai opened this issue 3 years ago • 2 comments

The build_runner build will cache build artifacts and will only rebuild if the source files changed. This sometimes makes it hard to run unittest locally.

Suggestion: the expectBuildClean will clean the build files before running the build_runner build so that it makes sure the code is regenerated every time the test is run.

chunhtai avatar Apr 29 '22 19:04 chunhtai

cc @kevmoo

chunhtai avatar Apr 29 '22 19:04 chunhtai

Happy to have this as an option in the function. PRs welcome!

kevmoo avatar Dec 02 '22 19:12 kevmoo