yak_test 0.2.1+1 copy "yak_test: ^0.2.1+1" to clipboard
yak_test: ^0.2.1+1 copied to clipboard

outdated

A Dart package to help testing when using `yak_packages`

yak_test #

Use this package to create tests for packages in the yak_packages family


Getting Started #

  • Add to your pubspec.yaml
dev_dependencies: 
  yak_test: <latest version>
  • Create a test with the following steps
import 'package:yak_runner/yak_runner.dart';
import 'package:yak_test/yak_test.dart';

/// STEP 1 - use  `yak_runner` from [https://pub.dev/packages/yak_runner]

final _runner = YakRunner<int>(() => 2);

/// STEP 2 - create a test with  `yak_test` from [https://pub.dev/packages/yak_test]

final _tester = _runner.buildTest(_runner.buildTestFactory('description here'));

/// STEP 3 - run the test

void main() => _tester(0);

Buy me a coffee #

Whether you use this package, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this :)

Buy Me A Coffee


2
likes
0
pub points
18%
popularity

Publisher

verified publisheryakforward.com

A Dart package to help testing when using `yak_packages`

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

meta, mockito, riverpod, test, yak_error_handler, yak_runner

More

Packages that depend on yak_test