Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.8

- Update `FailingTest` to add named parameters `issue` and `reason`.

## 0.1.7

- Update documentation comments.
Expand Down
9 changes: 6 additions & 3 deletions lib/test_reflective_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const _AssertFailingTest assertFailingTest = const _AssertFailingTest();
/**
* A marker annotation used to annotate test methods which are expected to fail.
*/
const FailingTest failingTest = const FailingTest(null);
const FailingTest failingTest = const FailingTest();

/**
* A marker annotation used to instruct dart2js to keep reflection information
Expand Down Expand Up @@ -268,9 +268,12 @@ typedef dynamic _TestFunction();
*/
class FailingTest {
/**
* Initialize this annotation with the given issue URI.
* Initialize this annotation with the given arguments.
*
* [issue] is a full URI describing the failure and used for tracking.
* [reason] is a free form textual description.
*/
const FailingTest(String issueUri);
const FailingTest({String issue, String reason});
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: test_reflective_loader
version: 0.1.7
version: 0.1.8

description: Support for discovering tests and test suites using reflection.
author: Dart Team <misc@dartlang.org>
Expand Down