diff --git a/README.md b/README.md index 5b8e0c5..cd9d70f 100644 --- a/README.md +++ b/README.md @@ -242,11 +242,11 @@ The Rally REST API for Clojure is available on an as-is basis. Rally Software does not actively maintain or support this toolkit. If you have a question or problem, we recommend posting it to Stack Overflow: http://stackoverflow.com/questions/ask?tags=rally -##Running the tests +## Running the tests 1. Start up alm 2. Create test data 3. Back in the RallyRestAPIForClojure directory, add a `.lein-env` file containing ```{:username "ue@test.com" :password "Password" :rally-host "http://localhost:7001"}``` 4. Run `lein test` or, for a smaller subset of the tests, `lein test :only rally.api-test` or `lein test :only rally.api-test/objects-can-be-copied` - +5. Run `lein test :integration` for deftests with `^:integration` metadata. diff --git a/src/rally/api.clj b/src/rally/api.clj index 2aaf081..d985ce4 100644 --- a/src/rally/api.clj +++ b/src/rally/api.clj @@ -39,7 +39,7 @@ (try (update response :body #(if (nil? %) % (json/parse-string % true))) (catch Exception x - (debug (.printStackTrace x)) + (when debug (.printStackTrace x)) (merge response {:body {} :parse-exception x}))))