bdd

specflow disabled, SpecflowPackagePackage didnt load correctly

柔情痞子 提交于 2019-12-08 20:25:54
问题 I am having an issue with Specflow remaining disabled in Visual Studio extensions. When I start VS I get an error SpecflowPackagePackage didn't load correctly. I tried to uninstall and reinstall specflow but it seems weird. When I uninstall it says uninstall successful and asks to restart VS. When I restart Specflow is still there but disabled. Using Visual Studio 2015, Update 3, 64bit. Windows 10. Specflow Version 2017.1.6 回答1: I had a similar problem. However, it's happened for me on Visual

Testing Mouseover event in D3 with Sinon

别来无恙 提交于 2019-12-08 17:59:50
问题 I'm having trouble trying to get my test to pass. I would like to be able to use a spy to check whether or not the mouseover event was correctly called. Currently I am getting the following error, "Error: expected on to have been called at least once but was never called". Part of the confusion on my part relates to the differences between d3 and jQuery selectors, I'm more than happy to use the latter, but I'm not sure how to correctly use the former in a test to get the result I want. My

How to get VS2010 to recognize my mstests generated by SpecFlow?

荒凉一梦 提交于 2019-12-08 17:36:24
问题 I have configured Specflow to target the MsTest framework (instead of NUnit) by specifying it like this in the app.config of my 'specs' class library: <configSections> <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/> </configSections> <specFlow> <unitTestProvider name="MsTest.2010" /> </specFlow> So once it's in place, I can see that my test fixtures are produced correctly by the Specflow custom tool, with correct

All steps shown as pass before protractor cucumber execution

江枫思渺然 提交于 2019-12-08 12:59:38
问题 While executing my scripts, Immediately all steps shows as pass in console after that my actual scripts getting executed. Even after returning promise in each step. Feature File: Feature: Running Cucumber with Protractor Scenario: To verify the Search result Given I am on home page When I enter search value Then I verify the search page Step Definition: var chai = require('chai'); var chaiAsPromised = require('chai-as-promised'); var expect = chai.expect; chai.use(chaiAsPromised); module

Fitnesse automatic generate fixture class

房东的猫 提交于 2019-12-08 12:41:21
问题 I'm evaluating the Fitnesse as an acceptance test tool. Is there any way to automatically generate fixture class from fitness test pages? 回答1: No. In the fitness test pages you define the input data and the expected results but you have to write your fixture classes by your self or if you are lucky you may find something similar with what you need in the internet (for example you could find some oracle fixture and then you don't have to write that). 来源: https://stackoverflow.com/questions

Cucumber test double: scenario failing but its steps passing

拈花ヽ惹草 提交于 2019-12-08 12:38:59
问题 I'm learning Rspec + Cucumber with The RSpec Book. I'm just at the beginning, while developing a Codebreaker game. In it, there is a feature "Codebreaker starts game" that represents simply a user typing a command in the shell and getting two responses: "Welcome to Codebreaker!" and "Enter a guess:". Here it is how the feature looks like: Feature: code-breaker starts game As a code-breaker I want to start a game So that I can break the code Scenario: start game Given I am not yet playing When

Testing http basic authentication with Cucumber and RSpec in Rails 3.2.3

家住魔仙堡 提交于 2019-12-08 11:36:58
问题 I want to test the build-in basic http authentication mechanism in Rails 3.2.3. I have tried to test the http authentication in both RSpec and Cucumber but with a failing step in both tools. In Cucumber I get the following message on running my Feature: When I perform HTTP authentication as "admin" with "test" # features/step_definitions/web_steps.rb:1 undefined method `env' for nil:NilClass (NoMethodError) ./features/step_definitions/web_steps.rb:3:in `/^I perform HTTP authentication as "([^

Can anyone show me some examples of NSpec being used to test controllers (and other aspects of MVC site)?

馋奶兔 提交于 2019-12-08 10:24:57
问题 I'm starting working with NSpec but would love a few pointers on the right way to use it to spec or test my controllers. Basically a few examples would go a very long way. Are there any example projects out there? All help would be appreciated. Richard. 回答1: Why yes! The tests suite that follows is from a reference implementation, there are 4 unique mvc applications that all use NSpec as their test suite. Definitely check them out here. Here is one of the tests. This specification verifies a

Aruba cucumber tests (ruby1.9.2)

久未见 提交于 2019-12-08 07:53:33
问题 I've just installed the aruba gem which is an extension to cucumber. It allows you to test command line applications - like generators in Rails (but, as the documentation points out, you could use it for any cmd app). I have been following this pivotal labs article about using it, but for some reason it doesn't get past the first step: the first step is green ( the creation of the app ), but the following step tries to cd test_app and can't find it and fails. Given I run "rails new test_app"