Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Carton is implicit dependency? #75

Closed
lewang opened this Issue Oct 14, 2012 · 3 comments

Comments

Projects
None yet
2 participants

lewang commented Oct 14, 2012

I want to add ecukes as a submodule and use it to write/run tests. Carton may be interesting in future, but I don't want to install it just to run ecukes.

Please break this dependency.

Contributor

rejeep commented Oct 14, 2012

Hey,

Carton is not required. You can still have Ecukes as a submodule if you want. But then you would also need to add ansi (https://github.com/rejeep/ansi) as a submodule so that Ecukes can find it.

Let me know if you run into any trouble with this set up!

lewang commented Oct 14, 2012

It's not clear how to add a directory to the load-path before (require 'ansi) is called?

I'd like to use the default ./util/ecukes/ecukes test runner

Contributor

rejeep commented Oct 14, 2012

This is a bit unclear (and annoying) how to do if you're not using Carton (which does this automatically). The way I solve it in Carton is to get the correct load-path before starting Ecukes.

You could try something like this. Create a folder called util. Clone Ecukes and Ansi in that folder.

EMACSLOADPATH=$(emacs -Q --batch --eval '(message (mapconcat (quote identity) (append (file-expand-wildcards "util/*" t) load-path) ":"))' 2>&1) ./util/ecukes/ecukes features

The reason for doing it this way is because Emacs overrides everything in load-path when using EMACSLOADPATH and not just appends it...

@rejeep rejeep closed this Aug 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment