From 06d4668f5d1e45af053ec028457508e7e4c0c73b Mon Sep 17 00:00:00 2001 From: jadkins Date: Wed, 13 Oct 2010 14:02:48 -0500 Subject: [PATCH] Added additional metadata support --- .../src/locale/en_US/metadata.properties | 20 ++ FlexUnit4/src/metadata.xml | 273 ++++++++++++++++++ 2 files changed, 293 insertions(+) create mode 100644 FlexUnit4/src/locale/en_US/metadata.properties create mode 100644 FlexUnit4/src/metadata.xml diff --git a/FlexUnit4/src/locale/en_US/metadata.properties b/FlexUnit4/src/locale/en_US/metadata.properties new file mode 100644 index 00000000..756231ff --- /dev/null +++ b/FlexUnit4/src/locale/en_US/metadata.properties @@ -0,0 +1,20 @@ +flexunit.test = Annotates a method as a FlexUnit 4 test. +flexunit.runwith = Used to specify a custom runner for a FlexUnit 4 test case. Custom runners must implement the IRunner interface. +flexunit.suite = Annotates a class as a FlexUnit 4 suite. This class also needs to be decorated with the [RunWith(org.flexunit.runners.Suite")] metadata. +flexunit.before = Annotates that a method should be run before every test in this test case. +flexunit.after = Annotates that a method should be run after every test in this test case. +flexunit.beforeclass = Annotates that a method should be run before any tests are executed in this test case. +flexunit.afterclass = Annotates that a method should be run after any tests are executed in this test case. +flexunit.ignore = A test or class decorated with this metadata will not be run and marked as an ignored test during test execution. +flexunit.theory = Specifies a type of test which uses parameters to test a repeatable, mathematical theory. +flexunit.parameters = Used as a part of parameterized testing to specify what array contains parameters for this method. +flexunit.datapoints = Used to specify an array of parameters to be used as part of a theory or parameterized test. A variable decorated with [DataPoints] metadata must also be decorated with [ArrayElementType] specifying the type of the values within the array. +flexunit.datapoint = Specifies a single data point to use with a theory. +flexunit.expects = Used to decorate a test which expects an error to be thrown. The value of this attribute must match the full class package definition of the expected error. +flexunit.order = Notifies the runner of operations that must be handled in a specific order. Operations of the same type are handled in ascending order. +flexunit.description = Generally used to explain the use of a test. +flexunit.timeout = Used with the async annotation to specify a time in milliseconds before a test waiting on an async operation should be marked as a failure. +flexunit.async = Signifies that a test needs to wait for an asynchronous operation. Forces the test to wait until the operation completes. Failing to specify a timeout will cause the runner to hang indefinitely in the case of a failure. +flexunit.ui = Notifies the runner that this operation requires UI interaction. Most ui methods are also asynchronous and should be decorated with the async tag as well. +flexunit.loader = Used to specify a loader for external data. Loaders must implement the IExternalDepedencyLoader interface. +flexunit.dataProvider = Used to specify an array containing the data for a parameterized test. \ No newline at end of file diff --git a/FlexUnit4/src/metadata.xml b/FlexUnit4/src/metadata.xml new file mode 100644 index 00000000..3548f410 --- /dev/null +++ b/FlexUnit4/src/metadata.xml @@ -0,0 +1,273 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file