Created
March 5, 2013 02:22
-
-
Save obfusk/5087496 to your computer and use it in GitHub Desktop.
clojure cuke
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use 'speclj.core) | |
(Given #"^Cucumber is Working$" [] | |
(should= 1 1) ) | |
(Then #"^I am Happy$" [] | |
(should-not= 37 42) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Foo | |
Foo Foo Foo! | |
Scenario: Bar | |
Given Cucumber is Working | |
Then I am Happy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ... | |
:plugins [ [speclj "2.5.0"] [lein-cucumber "1.0.2"] ] | |
; ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Run specs' | |
task :spec do | |
sh 'lein spec -c' | |
end | |
desc 'Run specs verbosely' | |
task 'spec:verbose' do | |
sh 'lein spec -c -f d' | |
end | |
desc 'Cucumber' | |
task :cuke do | |
sh 'lein cucumber' | |
end | |
desc 'Cucumber (prettier)' | |
task 'cuke:pretty' do | |
sh 'lein cucumber --format pretty' | |
end | |
desc 'Generate docs' | |
task :docs do | |
sh 'lein marg' | |
end | |
desc 'Cleanup' | |
task :clean do | |
sh 'lein clean' | |
sh 'rm -rf docs/' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment