faster_driver 0.1.3 copy "faster_driver: ^0.1.3" to clipboard
faster_driver: ^0.1.3 copied to clipboard

Script(s) to improve Integration Tests. Allows merging all the Integration tests into one file to run all tests at once

0.1.3 #

  • Introducing test sharding. To shard your tests use --total-shards and --shard-index. The tests are sharded by test file. You can shard the example by running
fasterdriver --total-shards 4 --shard-index 1 ./integration_test

This will split the existing 4 tests into 4 shards (one test per shard) and only put the 2nd test into main_tests.dart

0.1.2+1 #

  • [FIX] Fixing issue that required main_tests.dart to be already available otherwise it crashed - thanks @lhimo for reporting

0.1.2 #

  • Improving the ability to specify a single inner folder with tests

0.1.1 #

  • Adding possibility to only aggregate test files from a specific folder

0.1.0 #

  • [MINOR BREAKING CHANGE] Sorting created imports and test name by name to have consistent order between platforms. This is a breaking changes as the observed behavior changes

0.0.3+2 #

  • Due to limitations of some dockerized CI systems that cannot handle complex arguments with "", you can pass complex argument concatenated with ,,,

0.0.3+1 #

  • Better logging when mismatching arguments

0.0.3 #

  • Allowing passing arguments and templates

In case you want to pass specific arguments to your tests, now you can do it. You can specify the template of main_tests.dart file by passing the template file via the --template option. An example of template could look like this:

#{{main-body}} =   {{import-name}}.main(args);
// ignore_for_file: directives_ordering
/// This file is autogenerated and should not be committed
/// to source control
import 'package:integration_test/integration_test.dart';
import 'package:test_utils/test_utils.dart';
{{imports}}

void main() {
  final List<String> args = {{arguments}};
  IntegrationTestWidgetsFlutterBinding.ensureInitialized();
{{main-body}}
}

The {{main-body}} is a list of your test files and on the top of the file you declare how one line should look like - in this case we are passing args to every test file so it could use the arguments that we passed to fasterdriver via --test-args option.

0.0.2+1 #

  • Updating documentation

0.0.2 #

  • Improving successful messages

0.0.1 #

  • Initial release
1
likes
120
pub points
11%
popularity

Publisher

verified publishertomek-polanski.com

Script(s) to improve Integration Tests. Allows merging all the Integration tests into one file to run all tests at once

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

args, cli_util, path

More

Packages that depend on faster_driver