You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unit testing API will make use of the new metadata facility described
in xp-framework/rfc #16.
Rationale
Instead of having to having to rely on method names beginning with the
string "test" or having to supply all test methods from "the outside",
test methods can be simply marked with the annotation @test.
Functionality
Basic usage
The "test" tag is used to identify methods to be used as a test. This
attribute tells the framework that a particular method in the test case
is to be run during the unit testing phase.
Sometimes when a unit test is not ready for testing, it is good to ignore
that test while still being able to run the other tests. To that end, it
is allowed to set an @ignore attribute on a test method. Just as the name
would imply, this attribute will cause the method or class to be ignored
when the unit tests are run.
Scope of Change
The unit testing API will make use of the new metadata facility described
in xp-framework/rfc #16.
Rationale
Instead of having to having to rely on method names beginning with the
string "test" or having to supply all test methods from "the outside",
test methods can be simply marked with the annotation @test.
Functionality
Basic usage
The "test" tag is used to identify methods to be used as a test. This
attribute tells the framework that a particular method in the test case
is to be run during the unit testing phase.
Example:
Ignoring certain tests
Sometimes when a unit test is not ready for testing, it is good to ignore
that test while still being able to run the other tests. To that end, it
is allowed to set an @ignore attribute on a test method. Just as the name
would imply, this attribute will cause the method or class to be ignored
when the unit tests are run.
Example:
Dependencies
Related documents
http://www.onjava.com/pub/a/onjava/2004/04/21/declarative.html
http://www.nunit.org/test.html
http://www.codeproject.com/dotnet/tdd_in_dotnet.asp
http://xp-framework.net/downloads/rfc0020-util.diff
http://xp-framework.net/downloads/rfc0020-skeleton.diff
The text was updated successfully, but these errors were encountered: