Saturday, June 13, 2020

Nunit : IMP Annotations




AnnotationUsage
CategorySpecifies one or more categories for the test
CultureSpecifies cultures for which a test or fixture should be run
IndicatesIndicates that a test should be skipped unless explicitly run
IgnoreIndicates that a test shouldn't be run for some reason
MaxTimeSpecifies the maximum time in milliseconds for a test case to succeed
OneTimeSetUpIdentifies methods to be called once prior to any child tests
OneTimeTearDownIdentifies methods to be called once after all child tests
PlatformSpecifies platforms for which a test or fixture should be run
RandomSpecifies generation of random values as arguments to a parameterized test
RepeatSpecifies that the decorated method should be executed multiple times
RetryCauses a test to rerun if it fails, up to a maximum number of times
TearDownIndicates a method of a TestFixture called immediately after each test method
TestMarks a method of a TestFixture that represents a test
TestCaseMarks a method with parameters as a test and provides inline arguments
TimeoutProvides a timeout value in milliseconds for test cases
SetUpIndicates a method of a TestFixture called immediately before each test method


No comments:

Post a Comment