Ruby on Rails: Cucumber: how do I rake a single feature?
Reason why I want to run them individually, is because I need to have them individually set up in my rake file, because, My Java Heap Space fills up when I run them all together ...
Reason why I want to run them individually, is because I need to have them individually set up in my rake file, because, My Java Heap Space fills up when I run them all together ...
I have a link that opens in a new window, and I need to test the part of my app that is within that new window. Any suggestions will be much appreciated. ...
I have this Then /^the "([^\"]*)" tag with the id "([^\"]*)" should have the style "([^\"]*)"$/ do |tag,id,style| if page.respond_to? :should page.should have_selector(tag, :id => id, :style => style) else assert page.has_selector?(tag, :id => id, :style => style) end end And This is my cuke step And the "di...
This is the error I get: NativeException: java.lang.RuntimeException: Could not retrieve XPath >//id[@class='open'//@id='status_open']< on HtmlPage(http://cucumber.test.com/proposals/view-me/edit#)@17325460 (Culerity::CulerityException) This is my Cucumber command Then the "li" tag with the id "status_open" should have the class "ope...
So, my app has a javascript alert... how do I, using cucumber and / or capybara, test that the alert hay a particular string? ...
Running a Cucumber feature from inside TextMate is producing an error. Works perfectly from the terminal error is: Running: /usr/local/bin/ruby /Users/craig/Projects/lahaina/script/cucumber /Users/craig/Projects/lahaina/features/top_level_pages.feature --format=html Missing these required gems: cucumber-rails >= 0.3.2 database_clean...
Hello, It was been a long time I haven't run cucumber in my project. It's running good before but now, when I try to run cucumber features, I have this error: Using the default profile... no such file to load -- zip/zip (MissingSourceFile) /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/local/...
I'm developing a tool that accesses SVN by running the command line SVN to get info and export. I'd like to write some Cucumber features so I don't have to keep manually testing but I'd like to mock out the SVN accesses. Should I switch to using a Ruby SVN library and if so, which one? Or is there a fake svn.exe that will provide pr...
Does anybody know how to silence or filter lines from the backtrace of a cucumber run? Im running a rails 2.3.5 App with the database_cleaner plugin set to truncate after each scenario. And every time one runs, the terminal gets flooded with useless "NOTICE truncate cascades.. blah blah" message. I've tried using the config/initializers...
I'm getting Rails and Cucumber going on my Mac OS X box. When I try to run the following scenario: Feature: ActorDetail In order to learn about an actor As a costumer I want to see their details Scenario: Actors page should exist Given I am on actor page Then I should see "Actors" When I attempt to run the tests I get the foll...
I'm using cucumber, rails3, rspec2 and autotest. I'm trying to figure out why my features are infinitely looping. I suspect it some file being changed during the tests but I'm not sure which one. I've added some exceptions to my .autotest with no dice. Are there any steps I can take to troubleshoot this problem? It'd be cool if I could...
I am receiving the following error, when running cucumber: undefined method `overall_rating_id=' for #<OverallVote:0x102f1c4a0> (NoMethodError) Relevant classes are: class OverallVote < Vote belongs_to :overall_rating attr_accessible :overall_rating_id end class OverallRating < Rating has_many :overall_votes end I thought th...
For a cucumber step, I know that a particular ul element should have 5 children li. How can I assert this with Webrat? I'm guessing there could be something like: Then ".selector" should have n ".another-selector" or maybe Then I should see n ".selector" within ".another.selector" Is there anything like this floating around, or sho...
Hi. I am very new to Rails and Cucumber so this may or may not be a quick fix. I have a cucumber scenario that loads a collection of models and then checks to see if they are all rendered to a table. Cucumber returns a result saying "Tables were not identical". What am I missing here? I have tried to add headers in the second step defin...
I'm writing a web app which is used a SaS. Each customer has their own db and app directory so I have a rake task which creates all necessary minimum data (seed data) to run their website: default rights and roles, a superadmin user, a "us_states" table already populated, some local depots and terminals (it's a logistics app). I don't h...
Hi. I am using Cucumber as the BDD framework with rspec/mocha mocking. Ideally we would not mock/stub behavior in cucumber specs; however the scenario is exceptional here. To give you the brief idea of problem here; I have two features product feature and cart feature. Cart feature is currently mocking some of the product fetch from 3 ...
rake cucumber --trace output: /usr/bin/ruby1.8 -I "/home/vadim/.bundle/ruby/1.8/gems/cucumber-0.8.3/lib:lib" "/home/vadim/.bundle/ruby/1.8/gems/cucumber-0.8.3/bin/cucumber" --profile default Using the default profile... ... Given I signed up with "username/[email protected]/password" # features/step_definitions/clearance_steps.rb:13 ...
I'm playing with cucumber but for some reason the features and scenarios are not being outputted to the console. When I run cucumber features I get Using the default profile... .... 1 scenario (1 passed) 4 steps (4 passed) 0m0.071s So my tests have passed but I can't see my features or scenarios. Is there a command line flag or s...
I just installed cucumber, and I tested it. I got the following error: teefcomp:cucumber-intro teef$ cucumber features/manage_users.feature Using the default profile... F----F Failing Scenarios: cucumber features/manage_users.feature:6 # Scenario: User List 1 scenario (1 failed) 4 steps (4 skipped) 0m0.029s It seems to be suppressin...
Hi, I am running BDD steps with cucumber to implement my autlogic login behavior. Scenario: log in Given a registered user: "[email protected]" with password: "p@ssword" exists And I am on the homepage When I follow "Log in" And I fill in "Username" with "[email protected]" And I fill in "Password" with "p@ssword" And I open the page And I pre...