Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

run-test-system executes file multiple times. #20

Open
tmccombs opened this issue Nov 9, 2015 · 4 comments
Open

run-test-system executes file multiple times. #20

tmccombs opened this issue Nov 9, 2015 · 4 comments

Comments

@tmccombs
Copy link
Contributor

tmccombs commented Nov 9, 2015

I have a test sytem with a single test-file.

When I run prove:run or prove:run-test-system on the system that file is run three times.

I can provide the source code if that is helpful.

@tmccombs
Copy link
Contributor Author

tmccombs commented Nov 9, 2015

hmmm, this stopped happening after I restarted lisp. I wonder if it has something to do with loading the system multiple times or something.

@deadtrickster
Copy link

yep noticed that too

@fukamachi
Copy link
Owner

Thanks for reporting. 

It might be fixed at 000c3f7 .

On Fri, Nov 20, 2015 at 3:34 PM, Ilya Khaprov notifications@github.com
wrote:

yep noticed that too

Reply to this email directly or view it on GitHub:
#20 (comment)

@TeMPOraL
Copy link

I might be confused about how one is supposed to use this library, but I've set up something like this in .asd:

  :components ((:module "tests"
                        :components ((:file "package")

                                     (:module "tests"
                                              :components ((:test-file "test")))

                                     (:test-file "run-all")))))

test.lisp contains simple tests:

(deftest test
  (plan 1)
  (pass "testing tests")
  (finalize))

(deftest test2
  (plan 1)
  (pass "another test of tests")
  (finalize))

and run-all.lisp does:

(run-test-package :alice-tests)

Now each time I execute (asdf:test-system :alice), I get a report saying

✓ ~D tests completed

where ~D increases by 2 every time I execute asdf:test-system.

Sounds related to the issue here. Am I missing some resetting of the library internal state?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants