

Your ‘Edit Configuration’ window should look like this: In RubyMine’s ‘Edit Configurations’, under Default -> Rspec: # Add rspec to the beginning of the commands sent to Zeus # If the test file is moved to the end, it dies less. but Zeus will parse those options thinking -require is meant for it, and die. # rspec_runner.rb spec/my_cool_file.rb -require teamcity/spec/runner/formatter/teamcity/formatter -format Spec::Runner::Formatter::TeamcityFormatter

RubyMine will invoke this file like this:

# Suppress zeus' whining about how it won't use your RAILS_ENV (You’ll get a cannot load such file - zeus or zeus is not part of the bundle error.)Īdd this script to your Rails project as script/rspec_runner.rb: #!/usr/bin/env ruby Yes the Zeus manual wants you to only have one global install, but RubyMine won’t be able to see it when running tests, because it always runs them under bundler. In your Gemfile, add zeus: group :test do The issue they mention with require ‘rspec/autorun’ should be fixed in the latest Zeus, but you can safely remove it from your spec_helper anyway. To get Zeus installed on your system, follow the readme or this lovely post at ThoughtBot. Zeus’ standard operating mode requires you to keep a Zeus server running (started with zeus start) to which you can issue commands (like zeus rspec). Spork does this job as well, but Zeus is newer/shinier and requires less explicit configuration. Zeus is a self-described “language-agnostic application checkpointer for non-multithreaded applications.” As a Rails developer, you can use Zeus to keep your rails environment loaded so your tests run super fast. It lets us define application behavior in plain meaningful English text using a simple grammar defined by a language called Gherkin.(Adapted from a thread on the RubyMine support forums) SpecFlow is a testing framework that supports Behaviour Driven Development (BDD). So let's understand what SpecFlow is and what Software development model is it following. Everybody is talking about how fun it is to use SpecFlow. Welcome to this journey to learn SpecFlow. BDD Tool SpecFlow Tutorial With Selenium in C#
