Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a new annotation for @Test that includes the @DisplayName #13

Open
kgress opened this issue Mar 22, 2019 · 0 comments
Open

Create a new annotation for @Test that includes the @DisplayName #13

kgress opened this issue Mar 22, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@kgress
Copy link
Contributor

kgress commented Mar 22, 2019

Summary

Right now, we are using Junit Jupiter's @Test and @DisplayName on our test cases. We could wrap both of these annotation to a single @Test annotation on Scaffold so we can write the DisplayName of the test inline with @Test.

@DisplayName currently provides value in formatting the SauceLabs Dashboard test results with a String other than the test method name.

For example, a single @Test annotation that looks like this:

@Test("Clicking Go Should Do the Thing")
public void testGoButton() {
    insertLogicHere();
    assertion;
}

A/C

  • Scaffold should provide an annotation that allows users to write an inline @DisplayName with the @Test annotation
  • Scaffold should still allow users to use the base @Test annotation if they do not want to use @DisplayName
@kgress kgress added the enhancement New feature or request label Mar 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant