Fork me on GitHub
#cursive
<
2020-03-04
>
favila16:03:08

Is there a way to get cursive to mark a source directory of a deps.edn project as a test sources route without using the test alias? in this case, the entire project is a test

cfleming22:03:13

Yes, you can just mark them as test roots in the IDE and then Cursive will leave them that way.

favila22:03:23

there’s no zero-config way like with the “test” alias or lein/mvn :test scopes?

favila23:03:15

I don’t mean to be picky 🙂 I’m thinking of setup for new engineers. The number of projects is very large

favila23:03:40

I’m considering commiting the misc.xml but that’s been tricky in the past

cfleming00:03:16

Any :extra-paths in the :test alias will be marked as test roots, otherwise it’ll have to be by hand. You can add something into :extra-paths under :test even if it also appears under :paths, I’m pretty sure.

onetom18:03:07

The deps tool window only shows a test (system) even if i have a test alias in my project's deps.edn. Is that an expected behaviour? Also the :extra-paths within the :test alias in my ~/.clojure/deps.edn seems to be ignored, when I have a :test alias in my project's deps.edn. (I Cmd-F for the extra path in the classpath printed in the REPL)

cfleming19:03:36

Yes, the fact that Cursive doesn’t distinguish system from project deps is a known issue.

cfleming19:03:50

I’ll check the :extra-paths thing.