bdd

Understanding Behavior Driven Development (BDD)

做~自己de王妃 提交于 2019-12-03 04:41:11
From the wikipedia article on BDD: BDD is a second-generation, outside-in, pull-based, multiple-stakeholder, multiple-scale, high-automation, agile methodology. It describes a cycle of interactions with well-defined outputs, resulting in the delivery of working, tested software that matters. I am not able to make sense of the adjectives used such as "outside-in", "pull-based" and "multiple-scale" even after going through the referred presentation . Please help explain. I wrote a blog post on where I learned about BDD as couple of weeks ago. It focus on the .NET platform toolwise and is a bit

Good resource to learn BDD, TDD (ruby , C#, javascript)

喜夏-厌秋 提交于 2019-12-03 04:38:36
问题 What are the good resource to learn BDD & TDD (ruby , C#, javascript). What are the good framework using now? 回答1: See Why should I practice Test Driven Development and how should I start? Beginning TDD - Challenges? Solutions? Recommendations? Good C# Unit testing book Introducing BDD What is the Path to Learn BDD on Ruby On Rails? Jasmine Hanselminutes - Understanding BDD and NSpec 回答2: I can't really speak with too much authority on this subject, nor will I speak with too greater vigour

Zend Framework integration with Behat BDD

让人想犯罪 __ 提交于 2019-12-03 04:24:56
问题 Anyone has been using Behat with Zend Framework? Any examples on how to use both? 回答1: I got it working. It works with PHPUnit and Zend_Test so you can use all those nifty assertXYZ() methods. First, make sure you've got behat installed and available in your system $PATH . I did the following: sudo pear channel-discover pear.symfony.com sudo pear channel-discover pear.behat.org sudo pear install behat/behat Now, create a directory structure like so: features application ControllerTestCase.php

How to get parent node in Capybara?

我们两清 提交于 2019-12-03 04:02:20
问题 I'm working with many jQuery plugins, that often create DOM elements without id or other identification properties, and the only way to get them in Capybara (for clicking for example) - is to get their neighbor (another child of its ancestor) first. But I didn't find anywhere, does Capybara support such things for example: find('#some_button').parent.fill_in "Name:", :with => name ? 回答1: I really found jamuraa's answer helpful, but going for full xpath gave me a nightmare of a string in my

How to write User Stories for technical implementation details? [closed]

本秂侑毒 提交于 2019-12-03 03:34:31
I'm trying to work in a more organised way and started adopting user stories. I think I have misunderstanding of how should I use user stories for technical stuff. Let's say I'm coding an app that gives me the ranking of my site for a certain Keyword in Google. The user story goes like that: As an Internet Marketer I want to find out where my website ranks for a keyword So I'll know whether my SEO efforts work Now this is pretty straight forward and user centric... However, what happens if I need to introduce Proxies into the loop. On one hand, Proxies are technical implementation detail on

What javascript mocking frameworks are people using? [closed]

不羁岁月 提交于 2019-12-03 02:20:08
Closed . This question is opinion-based. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it can be answered with facts and citations by editing this post . I'm using Jasmine for testing client & server side javascript and need to do some mocking. Has anyone got any suggestions for a good javascript mocking framework? I tried this once, but ended up refactoring instead so it wasn't needed. It doesn't have dependencies, so it should work just fine on node.js. http://sinonjs.org/ These are testing frameworks, but some of them include

Checking ActiveRecord Associations in RSpec

折月煮酒 提交于 2019-12-03 01:44:32
I am learning how to write test cases using Rspec. I have a simple Post Comments Scaffold where a Post can have many Comments. I am testing this using Rspec. How should i go about checking for Post :has_many :comments . Should I stub Post.comments method and then check this with by returning a mock object of array of comment objects? Is testing for AR associations really required ? Since ActiveRecord associations should be well-tested by the Rails test suite (and they are), most people don't feel the need to make sure they work -- it's just assumed that they will. If you want to make sure that

Is BDD really applicable at the UI layer?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 01:30:58
问题 BDD is an "outside-in" methodology, which as I understand it, means you start with what you know. You write your stories and scenarios, and then implement the outermost domain objects, moving "inwards" and "deliberately" discovering collaborators as you go--down through service layers, domain layers, etc. For a collaborator that doesn't exist yet, you mock it (or "fake it") until you make it. (I'm stealing some of these terms straight from Dan North and Kent Beck). So, how does a UI fit into

测试设计的初探

匿名 (未验证) 提交于 2019-12-03 00:41:02
原文链接 : https://joven.site/PreliminaryStudyOnTestDesign/ TDD:测试驱动开发(Test-Driven Development) BDD:行为驱动开发(Behavior Driven Development) ATDD:验收测试驱动开发(Acceptance Test Driven Development) DDD:领域驱动开发(Domain Drive Design) 通过下面一幅图就可以发现对于测试也有不同的层次和流程:   从图中可以发现,最下面的是 单元测试 ( 白盒测试 ),主要用于测试开发人员编写的代码是否正确,这部分工作都是开发人员自己来做的。通常而言,一个单元测试是用于判断某个特定条件(或者场景)下某个特定函数的行为。再往上,就是 BDD ( 灰盒测试、黑盒测试 ),主要用于测试代码是否符合客户的需求,这里的BDD更加侧重于代码的功能逻辑。   从左边的范畴也可以看出,测试的范围也是逐层扩大,从单元测试的类到BDD里面的服务、控制器等,再到最上层的模拟实际操作场景的 Selenium (Selenium也是一个用于Web应用程序测试的工具。Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。)对于包括UI界面的测试。 TDD TDD 指的是 Test Drive Development

How to increase reusability between SpecFlow/Gherkin steps?

爱⌒轻易说出口 提交于 2019-12-03 00:25:59
I think I thoroughly understand the concepts and ideas behind SpecFlow, but even after reading the Secret Ninja Cucumber Scrolls , The Cucumber Book , and going through the various forums I'm still unsure about the path to reusability. Our scenarios already comply to various guidelines Self explanatory Must have a understandable purpose (what makes it different from the other scenarios) Are unique Represent vertical functional slices Uses Ubiquitous Language Written from the stakeholder perspective About business functionality, not about software design Grouped by Epics ARE NOT TEST SCRIPTS