Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit f940644

Browse files
authored
Add 'issue' and 'reason' parameters to FailingTest. (#23)
1 parent 0e4f4b0 commit f940644

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.1.8
2+
3+
- Update `FailingTest` to add named parameters `issue` and `reason`.
4+
15
## 0.1.7
26

37
- Update documentation comments.

lib/test_reflective_loader.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const _AssertFailingTest assertFailingTest = const _AssertFailingTest();
1818
/**
1919
* A marker annotation used to annotate test methods which are expected to fail.
2020
*/
21-
const FailingTest failingTest = const FailingTest(null);
21+
const FailingTest failingTest = const FailingTest();
2222

2323
/**
2424
* A marker annotation used to instruct dart2js to keep reflection information
@@ -268,9 +268,12 @@ typedef dynamic _TestFunction();
268268
*/
269269
class FailingTest {
270270
/**
271-
* Initialize this annotation with the given issue URI.
271+
* Initialize this annotation with the given arguments.
272+
*
273+
* [issue] is a full URI describing the failure and used for tracking.
274+
* [reason] is a free form textual description.
272275
*/
273-
const FailingTest(String issueUri);
276+
const FailingTest({String issue, String reason});
274277
}
275278

276279
/**

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test_reflective_loader
2-
version: 0.1.7
2+
version: 0.1.8
33

44
description: Support for discovering tests and test suites using reflection.
55
author: Dart Team <[email protected]>

0 commit comments

Comments
 (0)