Skip to content

Instantly share code, notes, and snippets.

Karl Krukow krukow

Block or report user

Report or block krukow

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@krukow
krukow / build-log
Created Sep 30, 2018
uberjar issue
View build-log
➜ vsts-flow-metrics git:(feature/tools-deps) ✗ clj -A:uberjar -Srepro -Sverbose
version = 1.9.0.394
install_dir = /usr/local/Cellar/clojure/1.9.0.394
config_dir = /Users/krukow/.clojure
config_paths = /usr/local/Cellar/clojure/1.9.0.394/deps.edn deps.edn
cache_dir = .cpcache
cp_file = .cpcache/1294198245.cp
Cleaning target
Creating target/classes
@krukow
krukow / map.feature
Created Oct 10, 2012
Example Feature
View map.feature
Feature: Map
As a festival attendee I should be able to get a map of the
Festival site. It should include points of interest (POIs), and
my current location.
Scenario: My location
Given I am on the Map
When I tap the My Location button
Then the map should move to my location
View ios_only.rb
if ENV['CALABASH_IOS']=="1"
Given /^I am on the Home screen$/ do
query(...)
end
end
View table_step_def.rb
Given /the following people exist:/ do |people_table|
people_table.hashes.each do |hash|
# The first time the +hash+ will contain:
# {'name' => 'Aslak', 'email' => 'aslak@email.com', 'phone' => '123'}
# The second time:
# {'name' => 'Joe', 'email' => 'joe@email.com', 'phone' => '234'}
# etc.
end
end
View table.feature
Given the following people exist:
| name | email | phone |
| Aslak | aslak@email.com | 123 |
| Joe | joe@email.com | 234 |
| Bryan | bryan@email.org | 456 |
View hooks.rb
Before do |scenario|
end
After do |scenario|
puts "Oh no" if scenario.failed?
end
Before('@atag') do |scenario|
View gist:3737078
cucumber --tags @focus
cucumber --tags @focus,@email
cucumber --tags @focus,@email --tags @fast
cucumber --tags @focus,@email --tags @~slow
View gist:3737043
cucumber --format html --out a.html --format 'Slowhandcuke::Formatter'
Feature: Addition
Scenario: Basic Addition # features/addition.feature:3
Given a new counter # features/step_definitions/common.rb:1
When I add 3 # features/step_definitions/addition_steps.rb:2
Then the count should be 3 # features/step_definitions/common.rb:7
Scenario: Basic Addition2 # features/addition.feature:10
Given a new counter # features/step_definitions/common.rb:1
View user_trans.rb
Then /^the count must be (#{NUMBER})$/ do |result|
assert_equal @counter.count, result,
"Expected count #{result}, but the counter contained #{@counter.count}"
end
View transforms.rb
NUMBER = Transform /^\d+$/ do |num_str|
num_str.to_i
end
You can’t perform that action at this time.