tdd

Using Robot Framework for ATDD

允我心安 提交于 2019-12-02 16:48:13
I would like to hear other people's experience with Robot Framework for automated acceptance testing. What are its major strengths and weaknesses as well as any comparison with other frameworks (mainly Fitnesse and Selenium)? The code that will be tested is real-time, legacy code, mainly in C++. Bryan Oakley I have used Robot Framework at three different companies spanning about six years at the time that I write this, and all have been successful in one way or another. My experiences Company 1 The first place I used Robot was a Java-based web application for a top-tier Internet travel company

QUnit vs Jasmine? [closed]

爷,独闯天下 提交于 2019-12-02 16:32:59
What are the main differences between these two testing frameworks? I am a totally new to Test Driven Development and starting from the very beginning. QUnit is very easy to get started with, as you only need to include two files and a little bit of markup, then you can start writing tests. Jasmine strength, afaik is its BDD-style syntax, if that is something that you prefer (probably not a selling point for you) and tight integration into Ruby/Rails tools. In the end both get the job done. I recommend to start with QUnit. Once you're feeling comfortable, try Jasmine and check if the BDD style

How to speed up TDD flow with iOS and Objective-C/Xcode

Deadly 提交于 2019-12-02 15:57:47
Have been searching for experiences on TDD with Objective-C and iOS development. Previous post about "string calculator"-kata in Objective-C was useful (thanks). But it would be nice to learn even more fluent iPhone-TDD. Do you have some experience of how to use UISpec (based on Rspec ), iCuke (based on cucumber ) or similar tools? And if you also have got the flow going with autotesting (autoiphonetest.rb) like Paul did in his his blog , it would be very interesting feedback. Here is a good post: Test Driven Development in Objective-C with MacRuby I found the following screencast pretty

Is it impossible to use Guard with RubyMine?

☆樱花仙子☆ 提交于 2019-12-02 15:42:57
For some inexplicable reason, RubyMine autosaves every change you make and so every key stroke will trigger Guard to run your tests! And the most ridiculous thing is that there's apparently no way to disable this autosaving "feature". I'm just wondering, RubyMine seems to be a very popular editor among Rails developers and Guard seems to be an indispensable tool used to automate testing. Since Guard is impossible to use reasonably with RubyMine, how do people deal with automating their tests with RubyMine? Netzpirat Im using RubyMine with Guard all day, and in fact, some parts of Guard have

Test driven development book [closed]

别说谁变了你拦得住时间么 提交于 2019-12-02 15:42:57
What book would you recommend to learn test driven development? Preferrably language agnostic. Test Driven Development By Example Refactoring: Improving the Design of Existing Code Extreme Programming: Embrace The Change Growing Object-Oriented Software, Guided by Tests by Addison-Wesley - it is about mocking frameworks - JMock and Hamcrest in particular. From description of the book: Steve Freeman and Nat Pryce describe the processes they use, the design principles they strive to achieve, and some of the tools that help them get the job done. Through an extended worked example, you’ll learn

How do I unit test django urls?

你离开我真会死。 提交于 2019-12-02 15:27:47
I have achieved 100% test coverage in my application everywhere except my urls.py . Do you have any recommendations for how I could write meaningful unit tests for my URLs? FWIW This question has arisen as I am experimenting with Test-Driven Development and want failing tests before I write code to fix them. karthikr One way would be to reverse URL names and validate Example urlpatterns = [ url(r'^archive/(\d{4})/$', archive, name="archive"), url(r'^archive-summary/(\d{4})/$', archive, name="archive-summary"), ] Now, in the test from django.urls import reverse url = reverse('archive', args=

Resources for TDD aimed at Python Web Development [closed]

偶尔善良 提交于 2019-12-02 14:57:55
I am a hacker not and not a full-time programmer but am looking to start my own full application development experiment. I apologize if I am missing something easy here. I am looking for recommendations for books, articles, sites, etc for learning more about test driven development specifically compatible with or aimed at Python web application programming. I understand that Python has built-in tools to assist. What would be the best way to learn about these outside of RTFM? I have searched on StackOverflow and found the Kent Beck's and David Astels book on the subject. I have also bookmarked

Applying TDD when the application is 100% CRUD

扶醉桌前 提交于 2019-12-02 14:22:46
I routinely run into this problem, and I'm not sure how to get past this hurdle. I really want to start learning and applying Test-Driven-Development (or BDD, or whatever) but it seems like every application I do where I want to apply is it pretty much only standard database CRUD stuff, and I'm not sure how to go about applying it. The objects pretty much don't do anything apart from being persisted to a database; there is no complex logic that needs to be tested. There is a gateway that I'll eventually need to test for a 3rd-party service, but I want to get the core of the app done first.

Is there any framework for .NET to populate test data? [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-02 14:14:47
I am use c# and for unit testing and integration testing usually I need to populate fields automatically based on attributes. Lets say we will test if we can write and get back user data to database. I create a user object populate fields write user to database Read user object from database Check fields if what I write is same as what I read Is there any framework to populate user with test data automatically and check if two object are have the same values? Sample code may like this User user = new User(); AutoPopulator.Populate(user); user.Save(); Michael Baldry Take a look at NBuilder . It

Unit Tests vs. Acceptance Tests

岁酱吖の 提交于 2019-12-02 14:14:05
Are you for one or the other? Or both? My understanding is unit tests: validate the system from the developer's point of view help developers practice TDD keep code modular assist in detecting errors at low levels of granularity Acceptance tests: validate the system from the business and QC / QA points of view tend to be high level as they're often written by people not familiar with the inner workings of the code I feel both are necessary. However, for minimization of redundant work, is it a good idea to try to incorporate unit tests into acceptance tests? In other words, have the latter call