Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 8 days ago
JSON representation

A Dart package to verify that the build is up-to-date with respect to a git repository

Awesome Lists containing this project

README

        

[![Pub](https://img.shields.io/pub/v/build_verify.svg)](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);
}
```