prism icon indicating copy to clipboard operation
prism copied to clipboard

Run tests when file under resources is changed

Open xokomola opened this issue 11 years ago • 3 comments

I am working on a small parser using instaparse. I store the parser grammar under the resources directory. Whenever I change the grammar (which is referenced from a source file) I would like the tests to be re-run. I would not mind if this results in a full test as it may be difficult to figure out which source file depends on a resource file.

In general I think that prism should rerun tests whenever a file under the classpath is changed.

xokomola avatar Dec 01 '13 10:12 xokomola

Sounds like a useful idea. You should write a PR for it!

aphyr avatar Dec 02 '13 21:12 aphyr

I was about to, I forked but then couldn't test it locally because I didn't know how to test the plugin from a local git checkout. Do you know how? I'm still learning to crawl with clojure.

--Marc

On 2 dec. 2013, at 22:30, Kyle Kingsbury [email protected] wrote:

Sounds like a useful idea. You should write a PR for it!

— Reply to this email directly or view it on GitHub.

xokomola avatar Dec 02 '13 21:12 xokomola

On 12/02/2013 01:53 PM, Marc van Grootel wrote:

I was about to, I forked but then couldn't test it locally because I didn't know how to test the plugin from a local git checkout. Do you know how? I'm still learning to crawl with clojure.

Ah, you can install it locally with $ lein install. Then you just gotta make sure the installed version (whatever's in prism/project.clj) matches the version loaded by your ~/.lein/profiles.clj.

There's also an option to link the project directly in so you don't have to install it each time but I don't recall how off the top of my head. Probably in the lein docs.

--Kyle

aphyr avatar Dec 02 '13 22:12 aphyr