IntelliJ - Failed to start: 0 passed, 1 not started

后端 未结 8 2116
天命终不由人
天命终不由人 2020-12-17 15:23

Just been playing around for the first time with IntelliJ IDEA Community edition, first time I have worked with it so if I\'m missing something, please excuse me.

I

相关标签:
8条回答
  • 2020-12-17 15:43

    I had the same issue. Whatever be the number of scenarios, it was showing 1 extra scenario in NOT STARTED stage. I was using Scenario Outline to run tests and had commented the rows in the Example tables.

    I later found out that commenting the whole example table (which I didn't wanted to run) resolved the issue rather than commenting each row.

    0 讨论(0)
  • 2020-12-17 15:44

    I've created a ticket for IntelliJ IDEA, you can vote for it if you still encounter this problem.

    0 讨论(0)
  • 2020-12-17 15:48

    I got the same error. It was something weird sent to System.out that made IntellJ IDEA test "not started".

    0 讨论(0)
  • 2020-12-17 15:48

    I had this problem (in Android Studio but its a customised IntelliJ) and the reason was WHERE the cursor was when I ran tests using CTRL-SHIFT-F10.

    @Parameterized.Parameters
    public static Collection data()
    

    Once I moved the cursor into a test method or not inside any method, it worked.

    0 讨论(0)
  • 2020-12-17 15:56

    I had the same issue that cracked me up a little in IntelliJ IDEA 2017.2.1. The test case ran without any recognizable errors or irregularities, but in the end JUnit claimed the case as not started.

    Figured out it was caused by trying to print into a PrintWriter that has already been closed.

    0 讨论(0)
  • 2020-12-17 16:01

    Looks like this may have been a bug on IntelliJ, it has been raised with them.

    0 讨论(0)
提交回复
热议问题