verygoodopensource / very_good_test_runner Goto Github PK
View Code? Open in Web Editor NEWA test runner for Flutter and Dart created by Very Good Ventures ๐ฆ
Home Page: https://pub.dev/packages/very_good_test_runner
License: MIT License
A test runner for Flutter and Dart created by Very Good Ventures ๐ฆ
Home Page: https://pub.dev/packages/very_good_test_runner
License: MIT License
Description
Need to make a release of 0.2.0 given the Dart updates. This is technically a breaking change.
Update to the latest versions of Flutter/Dart given the new releases
Description
When running multiple flutter test
commands parallely via flutterTest()
method for sharded tests, the cli
throws the below error
Waiting for another flutter command to release the startup lock...
If the same flutter test
command is ran for sharded tests without using flutterTest()
method but via Process.start
, the flutter
command runs the sharded tests successfully.
Steps To Reproduce
flutterTest(
arguments:
"--total-shards 2 --shard-index 0 '${testDirectory.path}/example_a[1]_test.dart'"
.split(' '),
workingDirectory: tempDirectory.path,
);
flutterTest(
arguments:
"--total-shards 2 --shard-index 1 '${testDirectory.path}/example_a[2]_test.dart'"
.split(' '),
workingDirectory: tempDirectory.path,
);
Expected Behavior
When executing the flutter test
command via Process.start
for the shared tests, it runs without failure.
flutterTest()
method also uses Process.start
internally & it should run without locking flutter
command on the sharded tests.
Process.start(
'flutter',
"--total-shards 2 --shard-index 1 '${testDirectory.path}/example_a[1]_test.dart'"
.split(' '),
);
Process.start(
'flutter',
"--total-shards 2 --shard-index 2 '${testDirectory.path}/example_a[2]_test.dart'"
.split(' '),
);
Additional Context
Please find the test case to reproduce the issue here:
test('emits correctly for sharded tests (e2e)', () async {
final tempDirectory = Directory.systemTemp.createTempSync();
File('${tempDirectory.path}/pubspec.yaml').writeAsStringSync(
'''
name: example
version: 0.1.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dev_dependencies:
test: any
''',
);
final testDirectory = Directory('${tempDirectory.path}/test')
..createSync();
File('${testDirectory.path}/example_a[1]_test.dart').writeAsStringSync(
'''
import 'package:test/test.dart';
void main() {
test('example', () {
expect(true, isTrue);
});
}
''',
);
File('${testDirectory.path}/example_a[2]_test.dart').writeAsStringSync(
'''
import 'package:test/test.dart';
void main() {
test('example', () {
expect(true, isTrue);
});
}
''',
);
expect(
flutterTest(
arguments:
"--total-shards 2 --shard-index 0 '${testDirectory.path}/example_a[1]_test.dart'"
.split(' '),
workingDirectory: tempDirectory.path,
).where((e) => e is DoneTestEvent).first,
completes,
);
expect(
flutterTest(
arguments:
"--total-shards 2 --shard-index 1 '${testDirectory.path}/example_a[2]_test.dart'"
.split(' '),
workingDirectory: tempDirectory.path,
).where((e) => e is DoneTestEvent).first,
completes,
);
});
Description
Hi team, we are not able exclude folders from coverage, I don't know if it's a bug, or
For instance we have generated folder that include our localization
`very_good test --coverage --exclude-coverage "lib/l10n/**"``
Steps To Reproduce
very_good test --coverage --exclude-coverage "lib/l10n/**"
Expected Behavior
The folder excluded must be ignored for coverage
Additional Context
Tried also to ignore files directly it's not working too
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.