tdd
Should I Write Tests for Argument Exceptions?
When applying TDD, do you create tests that verify expected excepti开发者_开发问答ons for arguments (ArgumentException, ArgumentNullException, InvalidOperation, etc.) or just ones that are \"known\",[详细]
2023-04-02 14:51 分类:问答Testing setters with RSpec, should_receive, and create?
I\'m working on an e-commerce system and familiarizing myself with RSpec. An order has an associated payment.When the order is completed it starts to process the payment via our payment gateway.[详细]
2023-04-02 10:31 分类:问答Setting up a test in rspec with multiple "it" blocks
Say I have an instance method that does many different things that I need to test, something like store#process_order. I\'d like to test that it sends an email to the customer, adds an entry in the or[详细]
2023-04-02 09:46 分类:问答Red/Green test colors when using KIF for iPhone
Is there a way to add Red Green color开发者_高级运维s to the console for passing and failing tests on the KIF framework? I\'m not sure if this is in the works or if it\'s possible. Maybe by running th[详细]
2023-04-02 05:12 分类:问答test a file upload using rspec - rails
I want to test a file upload in rails, but am not sure how to do this. Here is the controller code: def uploadLicense[详细]
2023-04-02 01:54 分类:问答Is Test oriented development bad practice against the Test driven development
In this not so new article http://static.springsource.org/docs/Spring-MVC-step-by-step/part3.html I saw something that get my attention - TDD and TOD - as TOD is Test oriented development where develo[详细]
2023-04-02 01:35 分类:问答Factory Girl - variable number of associated objects for HABTM
If I have 2 models - eg. Shop and Brand and i want to model the shop having between say, 3 - 10 brands, what is a good way to do that using factory girl?[详细]
2023-04-01 14:56 分类:问答Detecting console.log() calls
I\'m trying to write a test case for a debugging method that writes messages to the JavaScript console using console.log(). The test has to check that the message has been successfully written to the[详细]
2023-04-01 08:27 分类:问答Test Driven Development - WPF
I\'d like to shif开发者_Go百科t my code to a more test driven development model, but am unsure the best way to do this for the presentation layer.[详细]
2023-04-01 06:21 分类:问答Can I do TDD for Android status bar notifications?
In order to use test-driven development principles for code involving the Android status bar, I would need to write tests that verify an expected state has been achieved. For example, a little unit te[详细]
2023-04-01 04:34 分类:问答