Is there an easy way to mock a .NET web service? Naively, I just tried to create a dynamic mock using the web service. Something like this: "new DynamicMock(...
... I think I'd start by doing just that. Because I don't know a better way, and I like wrappers anyway. Ron Jeffries www.XProgramming.com Prediction is very...
Hi I'm working on a search engine. Even after fine refactoring, I end up with a core function which will recieve many search-paramaters entered by a user and...
My company is looking into doing TDD but much of our product is coded as client side javascript. I have only found two approaches on the net for unit testing...
... Start with the simple stuff --- a simple query for one thing. Write the tests for that, and the code that generates the corresponding SQL. Once that works,...
My first option would be to start over and re-write the search engine using TDD. If that is not an option for you, you can read Michael Feathers "Working ...
I think the key is, you end up with a single sql statement. Focus on one input at a time. I'd guess you can have -no entry-, or an entry in one of several...
... There's also a new kid on the block TestSimple[1] which is a port of Perl's testing framework to JavaScript. Not used it in anger yet so can't really...
I've been using JsUnit to test server-side javascript; it can be a little frustrating at times, but serves the purpose. Can't offer advice on client-side...
Just a couple thoughts: 1. Do you have a coverage tool? JCoverage or Clover? This will help you analyze the paths through your complexity. 2. Perhaps you...
I'm trying to add to my organizations testing capabilities. This isn't really a TDD issue... Because I'm trying to automate the subsequent integration tests,...
Thanks. I keep looking at that and wishing I could find some time to investigate. It would solve a lot of problems I have with our development process. ...
... The problem that I have with such tools is that if either the UI or the underlying business logic changes, the tests break. I prefer to test the business...
... Seconded. The .Net libraries can be difficult to TDD with directly because so much is locked down. If you do this consistently, you end up with your domain...
I suggest looking at Juval Lowy’s example of interface-based web services (HYPERLINK "http://www.idesign.net/"www.idesign.net under downloads). This could...
I agree. Does a combination of Fitness.org & the standard xUnit tests cover all the bases (test external interfaces, integration, UI, regression)? If that...
On 1 Jun 2005, at 18:52, Greg Akins wrote: [snip] ... [snip] Perl's WWW:Mechanize[1] / HTTP::Recorder[2] combination is a useful one. It's more "script"...
... Spend sometime with Fit or Fitnesse. Ward Cunningham and Rick Mugridge has written a GREAT book (Fit for Developing Software) explaining how to use Fit....
... How does FIT actually run our code, and/or get through all the necessary security and pull up our web pages, and then check the results? I would just...
I would suggest two things from my experiences in using CodeSmith and thinking about TDD in that context. First, I suggest using TDD to develop your codebehind...
Hi Mike, ... If you're working in .NET you want the .NET implementation of FIT. ... Unfortunately, the .NET version doesn't have all the added fixtures that...
The news release is at: http://sourceforge.net/forum/forum.php?forum_id=470926 For TDD purposes there are a few choice morsels I think. - database reset...
... that ... database ... The just released version of SnapDAL aids in this process (for sql server only at this point). The style it supports is to create a...
First of all - thanks to everybody for the fast and helpful replies. Rob: I'm afraid we're using VB6, so I'm not sure which coverage tools are available.. if...
... Robert: I'm not sure a heuristic-test (such as "make sure the resulting SQL statement contains this or that column) you suggested would be satifying.. gut...
Sorry forgot to consider you might not be working in Java, so some of the tools I'd use may or may not be available to you. WRT testing the generated SQL vs....
This method is really slow and tedious, but it would work for your situation... since it doesn't sound like thousands of lines of code or anything... Get your...