testing

What's the best database access pattern for testability?

I've read about and dabbled with some including active record, repository, data transfer objects. Which is best? ...

Integration Testing Http Proxy Server

I have written a simple HTTP Proxy server in C# that I would like to integration/functional test. Is there a product already created that I could use to do this? If not, what is the best way to write my own tests for this (I already have unit tests)? ...

How do you test software?

Not referring to unit tests and automated tests. How does one go about giving your application to a test team and expect them to report bugs. Do you as the developer create test cases? What does the test team need to know to test your application? Is there a specific guideline about setting up a test team and processes so that an applica...

Do you test private method?

I have read the post about how to test private (http://stackoverflow.com/questions/34571/whats-the-best-way-of-unit-testing-private-methods) method because I usually do not test them, I always thought it's more fast to only test public method that will be called from the external of the object. Do you test private method? or Should I al...

Automated way to detect tests that can't fail, checked in to get by minmum code coverage?

I have a dev, that will get around our code coverage by writing tests that never fail. The code is just atrocious, but the tests never catch it because they assert(true). I code review, but I can't do everyones work for them, all the time. How do you get people like this motivated to make good software? Is there a build plugin for det...

Do you use TestLink and are you happy with it ?

In our project, we use this software for test management. What is your experience with this software ? Does it scale correctly with thousands of tests ? ...

Generally define the process of testing

How would you define testing? In the interest of full disclosure, I'm posting this because I already have some answers I like. ...

Is there something like 'autotest' for Python unittests?

Basically, growl notifications (or other callbacks) when tests break or pass. Does anything like this exist? If not, it should be pretty easy to write.. Easiest way would be to.. run python-autotest myfile1.py myfile2.py etc.py Check if files-to-be-monitored have been modified (possibly just if they've been saved). Run any tests in th...

Why should I use RSpec or shoulda with Rails?

I am setting up a rails app and I just finished making some unit tests and my friend said that apparently fixtures are no longer cool and people are now using RSpec or shoulda. I was wondering what the actual benefits are to use these other toolkits. Any information at all is appreciated. -fREW ...

Any good book about Software Test Engineering specifically targeted to programmers?

There are a lot of questions related to Unit Testing on stack overflow, but I'm at the moment interested in understanding more about the testing role on a software development project. So just to make it clear: I'm not looking for books on Unit Testing. I believe that to be competent software developers we should know a bit about the ...

Best way to add tests to an existing Rails project?

I have a Rails project which I neglected to build tests for (for shame!) and the code base has gotten pretty large. A friend of mine said that RSpec was a pain to use unless you use it from the beginning. Is this true? What would make him say that? So, considering the available tests suites and the fact that the code base is already the...

What tools do you use to security test your web applications?

Are there any tools you recommend for security testing your web applications? I have used WebScarab from OWASP, but find it a bit difficult and unwieldy to use. Is there anything else you would suggest using? ...

Selenium internals

How does selenium work? Can you explain the internal working of it. ...

What unit-test frameworks would you recommend for J2ME?

Hi, I'm relatively new to J2ME and about to begin my first serious project. My experience in testing isn't too deep either. I'm looking for a unit test framework for J2ME. So far I've seen J2MEUnit, but I don't now how well supported it is. I've seen JavaTest Harness but I don't know if it's not an overkill. Please tell me what frame...

Can i use my WatiN tests to stresstest?

In my current project we are testing our ASP.NET GUI using WatiN and Mbunit. When I was writing the tests I realized that it would be great if we also could use all of these for stresstesting. Currently we are using Grinder to stresstest but then we have to script our cases all over again which for many reasons isent that good. I have ...

MVC Preview 5 - Rendering A View To String For Testing

I was reading a post by Brad Wilson (http://bradwilson.typepad.com/blog/2008/08/partial-renderi.html) on the new ViewEngine changes to MVC Preview 5 and thought that it would be great to be able to render a view to string for use in tests. I get the impression from the article that it may be possible to achieve this but cannot figure out...

Is there a way to verify that code will work on the 360 while doing XNA dev?

I'm working on a casual game on XNA with the intention of deploying to the Xbox 360. I'm not going to have access to hardware for a few weeks and I'm on a tight deadline, so I'd like to test that a few things -- Boo and a few custom libraries -- will work properly on the 360. If they don't, I need to work around them sooner rather than...

How would you unittest a memory allocator?

There's a lot of people today who sell unittesting as bread-and-butter of development. That might even work for strongly algorithmically-oriented routines. However, how would you unit-test, for example, a memory allocator (think malloc()/realloc()/free()). It's not hard to produce a working (but absolutely useless) memory allocator tha...

When to use test scripts over unit testing?

I am currently working on a project that has been in production for over two years. The project makes extensive use of unit testing and scripted UI tests. Initialy unit tests covered the system framework, business rules and state transitions (or workflow). Test scripts are used for black box testing. However, over time the cost of mainta...

Tools for automated GUI testing (on Windows)?

Does anyone have tools to recommend for automated testing of GUI applications on Windows? The tools must be language-independent and thus should be able to interact with any GUI, regardless of implementation language. In other words, I'm looking for something that can be scripted to press buttons, select menu items, check checkboxes, e...