runner icon indicating copy to clipboard operation
runner copied to clipboard

"Kumite was published with failed tests" even though all tests are succesful

Open FranzMartyn opened this issue 1 year ago • 0 comments

Describe the bug

I had to do some changes to a kata translation. The link to the kumite is in Additional context. Previously, I used groovy's built-in assert statement which I replaced with org.junit.jupiter.api.Assertions.assertEquals. I also changed the @Test annotations from org.junit.Test to org.junit.jupiter.api.Test.

To Reproduce

(I'm not sure whether this might work, but this is what I did)

  1. Create a Kumite in Groovy (org.junit.Test should be automatically imported in the Tests Cases)
  2. Write tests using assert
  3. Publish it
  4. Edit the Kumite
  5. Replace import org.junit.Test with import org.junit.jupiter.api.* and import static org.junit.jupiter.api.Assertions.assertEquals

Expected behavior

The yellow message in Screenshots to not appear

Screenshots

image

Browser

  • OS: Windows 10 Pro 22H2 (Build 19045.4651)
  • Browser: Chrome
  • Version: 127.0.6533.120 (Official Build) (64-Bit) (cohort: Stable)

Additional context

Kumite

FranzMartyn avatar Aug 20 '24 10:08 FranzMartyn