See https://github.com/dart-lang/json_serializable/blob/example/json_serializable/test/ensure_build_test.dart Maybe a no-opt build mode that (instead of writing files) makes sure that the target file exists and has the content that would be written? Or just an easy way to run build and see changed files?