Open xsc opened 11 years ago
I'm not sure that this is a right place... but I have a similar and strange behavior:
vbauer@vladislav-bauer:~/workspace/clojure/lein-plantuml$ lein with-profile dev midje
All checks (10) succeeded.
Error encountered performing task 'midje' with profile(s): 'dev'
Suppressed exit
All tests passed, but I see "Error encountered performing task 'midje' with profile(s): 'dev'". Any ideas?
PS: Yes, I have ":eval-in-leiningen true" in my project.clj
This change is the cause. @marick introduced it because on some platforms the plugin took several seconds to shut down after all tests have been run.
So I've been running [lein-midje "3.1.1"]
in my plugin projects for a year now since the most recent versions are broken for that purpose.
@xsc Thank you for the hint! I've downgraded lein-midje to the version 3.1.1 and it works pretty fine on Travis CI.
Will it be fixed in future versions of the plugin?
Well, this issue has been open for a year and three days now, so I'm not overly confident, the maintainers really see this as something that needs fixing...
+1
+1
+1
+1
I've now put this on the trello board. The problem with fixing it is that understanding how Leiningen behaves has gotten a lot more difficult than it used to be.
Trello card: https://trello.com/c/BzLO5BuU/17-lein-midje-not-working-with-high-level-leiningen-tasks-in-plugin-projects-47
Pull requests welcome.
+1
Any news about this problem?..
Sorry for the delayed reply. I've moved from Clojure on the backend to Elixir. Because of that, I can't devote time to lein-midje. I will do what I can to transition it to anyone who wants to pick it up.
Let's say I have the following in my
project.clj
:No tests are defined so far, so midje should not encounter any failures. I call:
Exit code is 1, things like TravisCI will fail. Note that this works fine for non-
:eval-in-leiningen
projects, the fact thatleiningen.core.main/exit
is called even if no failure is encountered just breaks testing of, e.g., plugin projects in that manner.