Skip to content

Instantly share code, notes, and snippets.

@obfusk
Created March 5, 2013 02:22
Show Gist options
  • Save obfusk/5087496 to your computer and use it in GitHub Desktop.
Save obfusk/5087496 to your computer and use it in GitHub Desktop.
clojure cuke
(use 'speclj.core)
(Given #"^Cucumber is Working$" []
(should= 1 1) )
(Then #"^I am Happy$" []
(should-not= 37 42) )
Feature: Foo
Foo Foo Foo!
Scenario: Bar
Given Cucumber is Working
Then I am Happy
; ...
:plugins [ [speclj "2.5.0"] [lein-cucumber "1.0.2"] ]
; ...
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