i realize that it's helpful for repl-driven development for :dev to be in the default profile, but it seems weird to me that :test also gets access to :dev. I just ran into an issue where my code runs with lein repl and lein test, but fails with lein uberjar because i had accidentally required one of my dev namespaces in my core code
is there a way to enforce that the test task only runs with the :test profile? outside of lein with-profile test test of course. i'd like to enforce this across my team
oh yeah, i can subtract! forgot about that. thanks, i'll add that
I use lein with-profile -dev test
The enforcement is that it runs on CI. Once you get used to some or other incantation, using bare lein test will feel just wrong
would lein check have caught this? I suspect it would have. I often use it because it runs quickly and finds "low hanging fruit" errors that are easier to fix the sooner you find them