Skip to content

Running a test suite causes all @BeforeClass instances to be run #49

@metasonic

Description

@metasonic

I have the following setup, where I group a series of classes based on the area they target.
The problem is that with version 1.9.2 and above this setup is no longer working correctly, instead of taking each class at a time, and running everything in it (@BeforeClass, , @test, @test,, @afterclass) the setul will run all the @BeforeClass methods from all the test classes before going back to running one class at a time, so (@BeforeClass1, @BeforeClass2, @BeforeClass3, @BeforeClass4, @BeforeClass5 , @Test1Class1, @Test2Class1...)

This will cause an error if i don;t have a @BeforeClass in any of my tests

@RunWith(Categories.class)
@IncludeCategory(WebSanity1.class)
@ExcludeCategory(WebSanity1_Tablet.class)
@SuiteClasses({ AllTests.class, })
public class WebSanity1_One {
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions