Skip to content

Instantly share code, notes, and snippets.

@JonathanLalou
Created January 4, 2018 00:44
Show Gist options
  • Save JonathanLalou/b3e35db8be14259876c6c53ea7cfd582 to your computer and use it in GitHub Desktop.
Save JonathanLalou/b3e35db8be14259876c6c53ea7cfd582 to your computer and use it in GitHub Desktop.
package com.github.jonathanlalou
import org.junit.Test
import static org.junit.Assert.fail
class RerunFailedTests {
@Test void testOne() { fail("testOne") }
@Test void two() { fail("two") }
@Test void "test three"() { fail("test three") }
@Test void 'test four'() { fail("test four") }
@Test void 'test, five'() { fail("test, five") }
@Test void 'test. six'() { fail("test. six") }
@Test void 'a.b'() { fail("a.b") }
}
@JonathanLalou
Copy link
Author

#IntelliJ #Groovy bug

  • Let's consider the Groovy file above
  • run all the tests (Ctrl+Shift+F10)
  • all 7 tests fail, as expected
  • in the Run view, click on "Rerun failed tests":
    ** expected behaviour: all 7 tests are replayed
    ** actual behaviour: only 5 tests are played ; the tests 'test. six' and 'a.b' are discarded. The discriminating factor seems to be the '.' in the method name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment