build_verify
build_verify copied to clipboard
Clean cached build file before running the test.
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.
cc @kevmoo
Happy to have this as an option in the function. PRs welcome!