Skip to content

[Internal testing] - simplify focused dart unit tests #6979

@juliemr

Description

@juliemr

As part of moving to use the dart test package instead of the deprecated unittest, we need to find a way of dealing with iit and ddescribe. In the test package exclusive specs are not natively supported and test files are read one at a time. This means that we can patch iit using Guinness, but it will only work within one file.

There are two ways around this. We can have one master-test-file which calls out to all other tests (ugly). Or, we can modify the workflow slightly. This is what I propose below:

Guinness2 will patch iit to create a test with a tag - test(name, fn, {tags: 'solo'}). This tag by itself will do nothing. Then, introduce a new gulp task - gulp test.unit.dart.solo which will expand to pub run test --tags="solo". The only change in user workflow is needing to run this task when using iit or ddescribe.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions