-
Notifications
You must be signed in to change notification settings - Fork 201
TestFixture
airstandley edited this page Jun 19, 2018
·
3 revisions
A class marked with the TestFixture attribute will be tested. By default only methods in the class decorated with the Test attribute are run as tests.
A test fixture may be marked with the Category attribute to mark all tests in that fixture with that Category by default. Specifying a different Category attribute for a test will override the test fixture category.
A test fixture may be marked with the Ignore attribute to ignore all tests in that fixture.
(Needs Editing)
[TestFixture('ExampleFixture1','General Example Tests')]
[Category('ExampleTests')]
TMyExampleTests = class
public
[Test]
procedure ATest;
...
[TestFixture('ExampleFixture2')]
[Ignore]
TMyExample2Tests = class
public
[Test]
procedure ATest;
...
[TestFixture]
TMyExample3Tests = class
public
[Test]
procedure ATest;
...