Unit testing is a method by which individual units of source code are tested to determine if they are fit for use. A unit is the smallest testable part of an application.

learn more… | top users | synonyms

11
votes
4answers
198 views

If I didn't use TDD but want to transition to agile, should I go back and create those unit tests?

In an transitioning agile environment, if there was no Test Driven Development (no unit tests created), should you create unit tests to catch up on technical debt? And to what extent? Should they ...
2
votes
3answers
137 views

Do I Need To Create Mock Classes For Every Class?

Let's say I have a system composed of three classes: A,B,C that share certain dependencies. To test A independently, I would need to create mock objects for B and C To test B independently, I would ...
2
votes
1answer
918 views

Unit Testing The Presenter (in an MVP Context) Using Mock Objects?

Below is some code which is just the simplest MVP project I could make. How can I unit test the presenter using mock objects? Does a mock object mean a completely made up object? In this case, the ...
2
votes
1answer
275 views

Using Scala to build unit tests for Java?

The idea of using Scala to build unit tests for Java code has been thrown around. People are making the claim that Unit tests would be less effort to write because there's less boilerplate. In ...
4
votes
4answers
998 views

UI and Business Logic Testing, Am I Doing it Right? Should I Unit Test Anything Else?

Alright, so this is what I have right now. buttonMultiply_Click(object sender, EventArgs e){ Calculator c = new Calculator(); textBoxLog.Text = "Calculation underway..."; int value1 = ...
17
votes
4answers
922 views

Developing Unit Tests While Refactoring Legacy Code?

I have a big code library that I need to refactor in order for it to fit more nicely together (one big problem is there aren't clear enough boundaries between each component). Since there will be ...
12
votes
6answers
767 views

In agile (Scrum) practices, where do I start with making Q&A (testing) more efficient if the team is transitioning from waterfall to agile?

My team has recently transitioned from the traditional waterfall method to practicing Scrum. Being the QA lead, really the only tester on a small team, how can I get the process more aligned with ...
2
votes
2answers
411 views

Newbie question: How do I run a JUnit 3 test on Portable Firefox 3.6 in Selenium RC (1.0.3)?

I'm pretty new to selenium, and I'm following the Selenium Simplified book examples. I'm trying to run a simple test that was created in Selenium IDE on Portable Firefox 3.6, and saved as a JUnit 3 ...
5
votes
6answers
758 views

Database code unit testing tips

I am working on developing a big 3-tier application. Database has a lot of code (stored procedures, functions, triggers...). I am looking for a valid approaches how to implement unit testing for the ...
4
votes
3answers
164 views

How would you call on-device unit tests ?

In the embedded world some (unit) tests have minimal value when they run as standalone test, like unit tests should. We have many tests that run on the embedded device, as part of the embedded ...