spec_cli 0.1.5 copy "spec_cli: ^0.1.5" to clipboard
spec_cli: ^0.1.5 copied to clipboard

CLI for Spec - a streamlined testing framework for Dart & Flutter.

✅ Spec

A streamlined testing framework for Dart & Flutter.

Melos docs.page

Spec builds on-top of existing Dart & Flutter testing tools to provide a streamlined & elegant testing environment. Spec provides both a CLI tool and Dart package.

CLI #

The Spec CLI allows you to run the spec command from your CLI environment and run your tests:

  • Intuitive testing output interface, inspired by Jest.
  • Interactive CLI (via spec --watch); automatically re-run tests when source code changes & rerunning of only failed tests.
  • Run both Dart & Flutter tests in parallel with a single command.
  • Run tests from multiple packages at the same time using Melos.

spec

Package #

The spec package provides a different take on how to write tests. Designed with type-safety and IDE autocompletion in mind, spec alters the way you write your tests to be more declarative, less error prone and force good habits.

test('dart test example', () async {
  int value = 42;

  // Without spec - not type safe
  expect(value, equals(42));
  await expectLater(Future.value(42), completion(equals(42)));

  // With spec - type safe
  expect(value).toEqual(42);
  await expect(Future.value(42)).completion.toEqual(42);
});

LICENSE

Built and maintained by Invertase.

9
likes
100
points
246
downloads

Publisher

verified publisherinvertase.io

Weekly Downloads

CLI for Spec - a streamlined testing framework for Dart & Flutter.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

ansi_styles, args, cli_util, collection, coverage, dart_test_adapter, duration, freezed_annotation, melos, meta, path, pubspec, riverpod, test

More

Packages that depend on spec_cli