Open ideal-knee opened 8 years ago
A potential README patch:
--- a/README.md
+++ b/README.md
@@ -36,6 +36,16 @@ Include speclj in your `:dev` profile `:dependencies` and`:plugins`. Then change
:test-paths ["spec"]
\```
+### `spec` Profile
+
+You can specify a `:spec` profile for testing-specific configuration. E.g. for [Environ](https://github.com/weavejester/environ):
+
+```
+; - snip
+:profiles {:dev {:env {:database-url "<dev-db-url>"}}
+ :spec {:env {:database-url "<spec-db-url>"}}}
+```
+
## Manual installation
1. Check out the source code: [https://github.com/slagyr/speclj](https://github.com/slagyr/speclj)
(I manually added a \
in that patch to get it to render correcty.)
If anyone is interested in using this patch, it is available on Clojars: https://clojars.org/org.clojars.ideal-knee/speclj
The default Leiningen
test
task merges in a test-specific profile, which allows libraries such as Environ to appropriately use dev or test configurations depending on task.My proposed patch:
This would allow users to define spec-specific profiles. All specs run by
lein spec
passed with this change (I do not havephantomjs
installed to run the ClojureScript specs). I also could not find any specs for theleiningen.spec
namespace, so I didn't write any tests.