jakemcc / test-refresh

Refreshes and reruns clojure.tests in your project.
393 stars 28 forks source link

When issuing Ctl+D on terminal it goes spinning #20

Closed abailly closed 10 years ago

abailly commented 10 years ago

From a fresh install of leiningen, a default project and version 0.5.0 of leon-test-refresh, when I do

$ lein test-refresh
Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this release.
Java HotSpot(TM) Client VM warning: TieredCompilation is disabled in this release.
*********************************************
*************** Running tests ***************
:reloading (app.core app.core-test)

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:46:56.598 (run time: 0.110s)

Then sending Ctl+d in the terminal makes lein-test-refresh execute tests in a continuous loop:

reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:16.235 (run time: 0.014s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:16.453 (run time: 0.016s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:16.659 (run time: 0.005s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:16.870 (run time: 0.007s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:17.089 (run time: 0.008s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:17.296 (run time: 0.006s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:17.512 (run time: 0.006s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:17.723 (run time: 0.009s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:17.935 (run time: 0.011s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:18.147 (run time: 0.010s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:18.362 (run time: 0.014s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.

Failed 1 of 1 assertions
Finished at 10:48:18.576 (run time: 0.011s)
*********************************************
*************** Running tests ***************
:reloading ()

Testing app.core-test

FAIL in (a-test) (core_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (
jakemcc commented 10 years ago

Easily reproducible on my machine as well. Will look into soon.

jakemcc commented 10 years ago

Just pushed version 0.5.1 that fixes this issue. Thanks for the report.