Skip to content

Instantly share code, notes, and snippets.

View josephwilk's full-sized avatar
💭
💻 🎨 🎵

Joseph Wilk josephwilk

💭
💻 🎨 🎵
View GitHub Profile
(::) failed steps (::)
Failed with exit status 1
STDOUT:
STDERR:
uninitialized constant Cucumber::WireSupport::Connection::Timeout (NameError)
/Users/josephwilk/Workspace/ruby/josephwilk/cucumber/bin/../lib/cucumber/wire_support/connection.rb:23:in `call_remote'
/Users/josephwilk/Workspace/ruby/josephwilk/cucumber/bin/../lib/cucumber/wire_support/wire_protocol.rb:7:in `step_matches'
/Users/josephwilk/Workspace/ruby/josephwilk/cucumber/bin/../lib/cucumber/wire_support/wire_language.rb:21:in `step_matches'
joseph-wilks-mac-pro:cucumber josephwilk$ bin/cucumber features/wire_protocol.feature --verbose --format pretty
Using the default profile...
Code:
* features/support/env.rb
Failed to load 'simplest' programming language for file features/support/env.rb.simplest: no such file to load -- cucumber/simplest_support/simplest_language
* features/support/env.rb.simplest [NOT SUPPORTED]
* features/support/fake_wire_server.rb
Features:
* features/wire_protocol.feature
joseph-wilks-mac-pro:cucumber josephwilk$ bin/cucumber features/wire_protocol.feature -v --format pretty
Using the default profile...
Code:
* features/support/env.rb
Failed to load 'simplest' programming language for file features/support/env.rb.simplest: no such file to load -- cucumber/simplest_support/simplest_language
* features/support/env.rb.simplest [NOT SUPPORTED]
* features/support/fake_wire_server.rb
Features:
* features/wire_protocol.feature
ENV["RAILS_ENV"] = "features"
require File.expand_path(File.dirname(__FILE__) + "/../../config/environment")
require 'spec'
require 'webrat/rails'
require 'spec/rails'
require 'rake'
load File.join(Rails.root, 'Rakefile')
Given /^the "([^\"]*)" rake task has run$/ do |task_identifier|
Rake::Task[task_identifier].invoke
end
-module(tictactoe).
-export([start/1]).
-import(random).
start(Inputs) ->
Board = lists:nth(1, Inputs),
Piece = whoAmI(Board),
ValidMoves = freeSpaces(Board),
Move = selectBestMove(ValidMoves, Piece, Board),
io:format(integer_to_list(Move)),
Scenario: Old example with cucumber.yml
Given a standard Cucumber project directory structure
And a file named "features/sample.feature" with:
"""
Feature: Sample
Scenario: this is a test
Given I am just testing stuff
"""
And a file named "features/support/env.rb"
And a file named "features/support/super_env.rb"

Testing outside of the Ruby world

Abstract

Ruby has a thriving testing ecosystem which is leading the way in many ways. But innovation in testing is not limited by language. Lots of interesting ideas are evolving from outside our comfy red world. It’s time we expanded our horizons and learned about some of the testing ideas evolving around other languages. Come to be inspired by new ideas, see how language changes the way we think about testing and discover what life is like in other testing lands.

Details

Joseph Wilk will take a tour of the testing tools and ideas that are evolving around different languages. Looking across a wide range of test types such as performance, acceptance and unit tests. We will examine some of the testing tools in languages like Clojure, Scala, Haskell, Javascript, Java and Python. Looking at new ideas and how the structure of the language effects the way we approach testing. Looking at tools for testing UIs through logs, Java plugins integrated with IDEs which pro

require 'rubygems'
begin
require 'cucumber'
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "--format pretty"
end
task :features => 'db:test:prepare'
rescue LoadError
feature_file = ARGV[0]
changes = `git log --oneline #{feature_file}`
puts "#{feature_file} changed: #{changes.split("\n").length}"