Open instilled opened 8 years ago
Hey Martin Fabio (woah, too many festive beverages)
Thanks for the suggestion, I hadn't seen this replace-task!
macro before - it's pretty groovy.
One thing to note is that clojure.core/test
is not actually a task at all. It's a fairly obscure function that could make some sense from the REPL, but has nothing to do with regular unit test runners, or boot tasks.
It seems to me this replace-task!
macro is just sugar for decorating tasks, and a bit clumsy for defining something novel. You're not actually generating the CLI metadata, or using the required binding variable.
The warning and unmap mechanism you quote above is fairly "orthodox", being taken from the official boot-test
repo.
On the other hand, I agree that it's a fairly technical, scare-quotey piece of code to place in such a prominent position for users, guessing that was your motivation opening this. While I don't think replace-task!
is the improvement we'd want to apply, I'm interested in a better solution.
Perhaps 'boot.user
should even come with this var
stripped by default?
Whoops, didn't mean to close! A clumsy trackpad fumble :stuck_out_tongue_closed_eyes:
We could also rename the task. I often use test!
as a task name to avoid collision.
Martin,
First of all great work with
tenzing
. Awesome bootstrap for cljs with boot!Just skimmed the generated
build.boot
and noticed your comment about the name collision:Did you know about
replace-task!
in boot? With the following you can easily redefine an existing task:Anyways, Thansk for the great work!