Skip to content
New issue

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

Runs forever, even completing tests #482

Closed
tainer opened this issue Nov 30, 2018 · 4 comments
Closed

Runs forever, even completing tests #482

tainer opened this issue Nov 30, 2018 · 4 comments
Labels
Milestone

Comments

@tainer
Copy link

tainer commented Nov 30, 2018

Hi,

I create a new project using maven and 'spring-boot-blank-archetype'.
After that, i just kept the following code:

//HelloController.java
package com.tainer.soft.apptotest.core;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/")
    String hello() {
        return "Hello World!";
    }
}

And

//HelloControllerTest.java
@Test
public void testHello() throws Exception {
    when().get("/").then()
            .body(is("Hello World!"));
}

And then, running the testHello unit test, this messagem shown on the Java Test Runner Output:

[INFO] @@<TestRunner-{"name":"testFinished", "attributes":{"name":"com.tainer.soft.apptotest.core.HelloControllerTest#testHello", "duration":"3398"}}-TestRunner>
[INFO] @@<TestRunner-{"name":"testSuiteFinished", "attributes":{"name":"com.tainer.soft.apptotest.core.HelloControllerTest"}}-TestRunner>
[INFO] @@<TestRunner-{"name":"testSummary", "attributes":{"message":"Total tests run: 1, Failures: 0, Skips: 0"}}-TestRunner>

while a popup "Running Tests..." runs forever, without finish the process.

Any idea?

tanks for your time

@jdneo
Copy link
Member

jdneo commented Dec 3, 2018

@tainer What's your OS?

@amitlevy21
Copy link

I'm having the same issue, using Ubuntu 16.04 and also happen in Windows 10

@jdneo jdneo closed this as completed in #490 Dec 4, 2018
@jdneo
Copy link
Member

jdneo commented Dec 4, 2018

I found out a potential bug which might be the root cause of this issue and fixed it in #490

@amitlevy21 Tried with the project that you provided. Now it won't always keep running any more.

The fix will be released with v0.12.0. If the issue still occurs after 0.12.0 get released. Feel free to comment here and let me know.

Thanks.

@tainer
Copy link
Author

tainer commented Dec 4, 2018

Hi @jdneo, i'm using win10.

@jdneo jdneo added this to the 0.12.0 milestone Dec 10, 2018
@jdneo jdneo added the bug label Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants