kgress / scaffold

A Java based Selenium WebDriver abstraction
MIT License
4 stars 7 forks source link

Create a new annotation that bubbles up @Execution, @ExtendWith, and @SpringBootTest #2

Closed kgress closed 2 years ago

kgress commented 5 years ago

Summary:

We should create a new annotation that allows users implementing scaffold to have just one annotation instead of three on their BaseTest file.

E.G, on an implementing project "AutomationCodeBase" :

@Execution(ExecutionMode.CONCURRENT)
@ExtendWith(SpringExtension.class)
@SpringBootTest(
        webEnvironment = SpringBootTest.WebEnvironment.NONE,
        classes = { AutomationCodeBaseConfig.class, ScaffoldConfig.class }
)
public class BaseTest extends ScaffoldBaseTest { ... }

This is a bit heavy and having a single annotation that bubbles all of these configurations up would be helpful.

A/C:

kgress commented 2 years ago

Few things here:

Because of the reasons above, I don't think we need a custom annotation. I've updated documentation for usage.