Add 'issue' and 'reason' parameters to FailingTest. (#23)



diff --git a/CHANGELOG.md b/CHANGELOG.md
index e9a5ee6..b6121a1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.1.8
+
+- Update `FailingTest` to add named parameters `issue` and `reason`.
+
 ## 0.1.7
 
 - Update documentation comments.
diff --git a/lib/test_reflective_loader.dart b/lib/test_reflective_loader.dart
index 5667fe3..25868d9 100644
--- a/lib/test_reflective_loader.dart
+++ b/lib/test_reflective_loader.dart
@@ -18,7 +18,7 @@
 /**
  * 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
@@ -268,9 +268,12 @@
  */
 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});
 }
 
 /**
diff --git a/pubspec.yaml b/pubspec.yaml
index b4f1781..3f399ea 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -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>