pandeiro / boot-test-cljs

A ClojureScript testing task for Boot
3 stars 2 forks source link

Remove dependencies on other third-party Boot tasks #1

Open pandeiro opened 9 years ago

pandeiro commented 9 years ago

Rationale

I would like boot-test-cljs to be a fairly general-purpose task that can be used both standalone and within a "pipeline" of other boot tasks.

As it is currently implemented, the test-cljs task achieves the standalone use case, but does not compose well (or at all, if you try to run it with the cljs task as well). It will also cause transitive dependency issues if a project is creating its own sub-libraries that compose tasks using these third-party tools.

Plan

Remove the parts that depend on adzerk/boot-cljs and pandeiro/boot-http and implement simplified versions of their functionality, keeping the API and functionality the same as it is, currently.

myguidingstar-zz commented 9 years ago

Yeah, shared tasks should only represent a specific step of build so they can be composed in project tasks. Here's my implementation for nodejs runner. https://github.com/boot-cljs-test/node-runner Would you mind making a runner for full environments (phatomjs, browsers)?

pandeiro commented 9 years ago

@myguidingstar Sure I think I could port the HtmlUnit (browser) code over. Where is the implementation?

myguidingstar-zz commented 9 years ago

oh I forgot it. Link added above