We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to indicate the nesting of @Nested tests by indenting them under their parent?
@Nested
Here's the current output we're getting:
The first nested block could be indented once, and the second nested block indented twice, and so on.
Here's what that looks like using the IntelliJ test runner - nested tests are clearly displayed as children of the parent level:
Example tests used to produce this output:
@Nested @DisplayName("Outer block") internal class TestTest { @Test fun `Test in the outer block`() { assertThat(1 + 1).isEqualTo(2) } @Nested @DisplayName("First block") inner class FirstBlock { @Test fun `Test in the first nested block`() { assertThat(1 + 1).isEqualTo(2) } @Nested @DisplayName("Second block") inner class SecondBlock { @Test fun `Test in the second nested block`() { assertThat(1 + 1).isEqualTo(2) } } } }
Thanks
The text was updated successfully, but these errors were encountered:
I've been doing some experimentation and it seems very much feasible.
Sorry, something went wrong.
hi @radarsh. did you ever get around to looking at this?
Half way into this. One of the scenarios is turning out to be more complicated than I thought.
radarsh
Successfully merging a pull request may close this issue.
Is it possible to indicate the nesting of
@Nested
tests by indenting them under their parent?Here's the current output we're getting:
The first nested block could be indented once, and the second nested block indented twice, and so on.
Here's what that looks like using the IntelliJ test runner - nested tests are clearly displayed as children of the parent level:
Example tests used to produce this output:
Thanks
The text was updated successfully, but these errors were encountered: