Skip to content

Commit

Permalink
Work around ddev coverage not respecting tags
Browse files Browse the repository at this point in the history
UIP-2410
  • Loading branch information
greglittlefield-wf committed Jun 20, 2017
1 parent db7d5d0 commit b1a8bda
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 10 additions & 2 deletions test/over_react/util/ddc_emulated_function_name_bug_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ main() {
reason: 'if this test fails, then it\'s possible that the bug was fixed in'
' a newer version of the Dart SDK, and this library can be eliminated!'
);
}, tags: 'ddc');
}, tags: 'ddc',
// Tests run in `ddev coverage` don't respect tags and show up as the 'vm' platform
// so we can use this to disable certain browser tests during coverage.
// Workaround for https://github.com/Workiva/dart_dev/issues/200
testOn: '!vm');
});

test('patchName fixes instances of a class with the issue in the DDC', () {
Expand All @@ -49,7 +53,11 @@ main() {

expect(() => testObject.name = testValue, returnsNormally);
expect(testObject.name, testValue);
}, tags: 'ddc');
}, tags: 'ddc',
// Tests run in `ddev coverage` don't respect tags and show up as the 'vm' platform
// so we can use this to disable certain browser tests during coverage.
// Workaround for https://github.com/Workiva/dart_dev/issues/200
testOn: '!vm');
});
}

Expand Down
6 changes: 5 additions & 1 deletion test/over_react/util/react_wrappers_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,11 @@ main() {
expect(result2, isNot(same(result1)),
reason: 'if this test fails, then it\'s possible that the bug was fixed in'
' a newer version of the Dart SDK, and this test can be removed!');
}, tags: 'ddc');
}, tags: 'ddc',
// Tests run in `ddev coverage` don't respect tags and show up as the 'vm' platform
// so we can use this to disable certain browser tests during coverage.
// Workaround for https://github.com/Workiva/dart_dev/issues/200
testOn: '!vm');
});

group('throws when passed', () {
Expand Down

0 comments on commit b1a8bda

Please sign in to comment.