Skip to content

Commit

Permalink
Tests as a separate project
Browse files Browse the repository at this point in the history
  • Loading branch information
rahcola committed Nov 7, 2013
1 parent 66226a5 commit 372154a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 20 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ jdk:
- openjdk7
notifications:
email: false
webhooks: http://polar-hollows-8825.herokuapp.com/notifications
6 changes: 2 additions & 4 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
(defproject training-day "1.0.0-SNAPSHOT"
:dependencies [[org.clojure/clojure "1.5.1"]
[midje-grader "0.1.0-SNAPSHOT"]]
:profiles {:dev
{:dependencies [[midje "1.5.1"]]
:plugins [[lein-midje "3.1.1"]]}})
[iloveponies.tests/training-day "0.1.0-SNAPSHOT"]]
:profiles {:dev {:plugins [[lein-midje "3.1.1"]]}})
17 changes: 1 addition & 16 deletions test/training_day_test.clj
Original file line number Diff line number Diff line change
@@ -1,17 +1,2 @@
(ns training-day-test
(:use training-day
midje.sweet))

(facts "answer" {:exercise 5
:points 1}
answer => 42)

(facts "square" {:exercise 6
:points 1}
(square 2) => 4
(square 3) => 9)

(facts "average" {:exercise 7
:points 1}
(average 2 4) => 3
(average 1 2) => 3/2)
(:use iloveponies.tests.training-day))

2 comments on commit 372154a

@Vaenae
Copy link

@Vaenae Vaenae commented on 372154a Jan 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit confusing that http://iloveponies.github.io/120-hour-epic-sax-marathon/training-day.html still says that the tests can be found from test/training_day_test.clj.

@Vaenae
Copy link

@Vaenae Vaenae commented on 372154a Jan 13, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also lein midje :autotest doesn't seem to work with this version.

Please sign in to comment.