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
Either tests with the same name, subcontexts with the same name, or a test with the same name as a subcontext.
@org.junit.jupiter.api.Test fun `names are unique within a context`() { assertFailsWith<IllegalArgumentException>("tests") { rootContext<Unit> { test("nameclash") {} test("nameclash") {} }.buildNode() } assertFailsWith<IllegalArgumentException>("contexts") { rootContext<Unit> { context("nameclash") {} context("nameclash") {} }.buildNode() } assertFailsWith<IllegalArgumentException>("context and test") { rootContext<Unit> { context("nameclash") {} test("nameclash") {} }.buildNode() } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Either tests with the same name, subcontexts with the same name, or a test with the same name as a subcontext.
The text was updated successfully, but these errors were encountered: