I'm a controls developer and a relative newbie to unit testing. Almost daily, I fight the attitude that you cannot test controls because of the UI interaction. I'm producing a demonstration control to show that it's possible to dramatically reduce manual testing if the control is designed to be testable. Currently I've got 50% logic c...
I am trying to determine what level of confidence my development team has in our automated test base (unit, integration, webtest). I would optimally like to get sensible answers to questions like:
What refactorings do you expect to be covered/not covered by tests ?
Would you trust a green build to auto-deploy for acceptance test enviro...
I'd like to migrate my fixtures to "Factory Girl" in Rails.
Is there any easy way to convert all yml files in a factories.rb file?
...
I've been a practitioner of test driven development for several years, and overall i'm happy with it. The one part that I don't yet understand is the idea that you should always be unit testing the 'smallest possible unit'.
Part of the idea of unit testing seems to be to allow you to refactor with confidence that you won't break anythi...
I've read a number of great books on software design, software management. In these books, you can find authors with passion and readers who get excited about the latest thing, whether it's agile, patterns, BDD. A typical engineering team is constantly buzzing about these things and arguing in the halls about whether buzzword X is a load...
I'm about to start work on a large project that will involve providing a significant number of web services.
We'll be using the Java platform, so, of course, we'll be making heavy use of JUnit, Hudson, etc. (although I'm not sure that matters at all.)
We're looking for a set of best practices and/or tools for testing the web services. ...
I have been perpetually intrigued by test-driven development, but I can never follow through with it when I try it on real projects. I have a couple of philosophical questions that continually arise when I try it:
How do you handle large changes? When it comes to testing single functions (some parameters, a result value, few side eff...
Some asserts are costly, some are better turned off at production code.
At least it is not clear that assertions should be always enabled.
In my application I would like to be able to turn on/off part of assertions on per-file or per-class basis.
How to do it in C++?
...
I am a little confused by the sheer number of testing frameworks available for Ruby/ROR.
I have recently watched the Cucumber Railscasts and found them very interesting. So I started having a play and then struggled to see conceptually where I would put various tests.
It would seem to be quite possible to do everything that can be done...
I have a type class Atomic, which defines functions for converting certain types to/from a wrapper value (Atom). I'd like to define a QuickCheck property which states: "for all instances of Atomic, any value may be stored and retrieved safely". The property looks like this:
class Atomic a where
toAtom :: a -> Atom
fromAtom :: At...
Say I have created a webservice and WCF service.
How are the different kinds of testing (viz. unit testing, SIT, etc) performed for web services and WCF service.
Do i need to explicitly create a sample project to test the service by passing input parameters and analyzing output parameters or are there any tools through which we can per...
While learning Rails I've created an application with a Domains controller nested below a Customers controller. I'm using Rails 2.3.4 and it's been a learning experience. I managed to get the below routing set up:
customer_domains GET /customers/:customer_id/domains(.:format) {:controller=>"domains", :action=>"index"}
...
I'm just starting, and yes, i haven't written any tests yet (I'm not a fundamentalist, I don't like compile errors just because there is no test), but I'm wondering where to get started on doing a project that parses fixed length flat file records according to an XML mapping, into a class that represents the superset of all file layouts,...
Hi,
I've built a thin GWT Wrapper around an existing JavaScript API. The JavaScript API is independently tested, so all I want to do is test that the GWT Wrapper calls the correct JavaScript functions with the correct arguments. Any ideas on how to go about doing this?
Currently, the GWT API has a bunch of public methods which after ...
On my last project, I created some test cases through Selenium, then automated them so they would run on every build launched from hudson. It worked fantastic, and was consistent for about a month.
Then the tests started failing. It was, most times, timing issues which caused the failures. After about two weeks of effort put in over ...
Is it possible to check the memory leak without going into the code. I have the application with me and I want to check whether there is memory leak or not.
In my present organisation, I check the cpu usage before and after running the application as well as the cpu usage of the process of the application. But I don't think this is the ...
How do I get an ASP.NET MVC controller properly initialized for an integration test?
My current problem is that when I try to access the User member of a controller I get:
System.NotImplementedException: The method or operation is not implemented.
What I want is what Ruby on Rails provides out of the box with the Functional Tests....
I want to test my controller which works on subdomain www.username.domain.com
The problem is when I dispatch in ControllerTestCase it throws Zend_Controller_Dispatcher_Exception
routes.php:
$userRouter = new Zend_Controller_Router_Route_Hostname(':user.domain.com'));
$router->addRoute('user', $userRouter->chain(new Zend_Controller_...
Hey Everyone,
I'm trying to find some useful Open Source Testing Automation Tools for use with the .NET framework. I've done a fair bit of research, but unfortunately, most of the tools I have found focus on testing web applications only.
There are 3 types of programs that we run in order to make our software do what it needs to do: We...
I'm trying to get just ONE copy of my application on my real iPhone to test it. How can I do this without going through the appstore?
...