tdd
Using MozMill for testing standalone XUL applications
As a follow-up of this question, I am trying MozMill for testing standalone XUL applications (not a firefox extension). However, I did not \"get it\" yet - more specifically, how to 开发者_如何学Pytho[详细]
2023-03-24 07:28 分类:问答Mocking local api in cucumber tests
I am writing an app that access a local that lives on a separate path on my own server via ajax requests. However, I want to test the app with cucumber and mock out the backend. Is there something lik[详细]
2023-03-24 05:51 分类:问答unit testing and SRP (test method scope/organisation)
Say I have an MVC Action like: public ActionResult CustomerRecord(customerId) { if (_cu开发者_JAVA百科rrentUser.CanViewCustomer(customerId))[详细]
2023-03-23 23:43 分类:问答Testing code that could be optimised out
I\'m just trying out tdd with nunit and i\'ve written the following test, for my CachedEnumerable<T> class:[详细]
2023-03-23 15:15 分类:问答Virtual methods in constructors for TDD using Extract And Override pattern
I want to use Extract And Override pattern in my code, the pattern is: Extract a method that creates an object needed in code make it virtual and override the methods in the TextFixture where it creat[详细]
2023-03-22 23:04 分类:问答TDD philosophy to motivate methods using composition
I used test-driven-development followed by some re-factoring and ended up with a set of classes using composition to progressively increase type-specificity.For example:[详细]
2023-03-22 19:29 分类:问答nodejs, run test automatically when files change
Is there a way to automatically run tests, when a fi开发者_如何学运维le in the app is changed? In rails there is a gem called guard. How can one achieve the same in nodejs?Not sure if this would work[详细]
2023-03-22 08:24 分类:问答Test Driven Development and Unit Tests in .net
Ok, so I am a fresh .net developer, I did some in college, but came out of college doing Coldfusion work and now have switched over to a new project in MVC3, using TDD, EF, the whole nine yards.[详细]
2023-03-22 07:30 分类:问答Simulating user input for TDD JavaScript
I\'m finding it increasingly difficult to simulate actual user events using jQuery or native element trigger functions. For example, if you have a text input and you don\'t want the user to be able to[详细]
2023-03-22 07:18 分类:问答How to unit test CanExecuteChanged and RaisePropertyChanged
I am trying to practice strict TDD and have run into issue related to DelegateCommands and testing that CanExecute has been called.[详细]
2023-03-21 17:51 分类:问答