https://github.com/kevmoo/build_verify
A Dart package to verify that the build is up-to-date with respect to a git repository
https://github.com/kevmoo/build_verify
build dart dart-build-system testing
Last synced: about 1 year ago
JSON representation
A Dart package to verify that the build is up-to-date with respect to a git repository
- Host: GitHub
- URL: https://github.com/kevmoo/build_verify
- Owner: kevmoo
- License: mit
- Created: 2018-09-01T20:53:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-02T20:12:52.000Z (over 1 year ago)
- Last Synced: 2025-03-29T15:09:13.709Z (about 1 year ago)
- Topics: build, dart, dart-build-system, testing
- Language: Dart
- Homepage: https://pub.dev/packages/build_verify
- Size: 90.8 KB
- Stars: 55
- Watchers: 1
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pub.dev/packages/build_verify)
Test utility to ensure generated Dart code within a package is up-to-date
when using `package:build`.
### Usage
Assuming your package is already configured to use `package:build_runner` –
`pub run build_runner build` succeeds – then simply add a unit test to the
test directory.
For example: `test/ensure_build_test.dart` containing:
```dart
import 'package:build_verify/build_verify.dart';
import 'package:test/test.dart';
void main() {
test('ensure_build', expectBuildClean);
}
```