Unit testing is a method by which individual units of source code are tested to determine if they are fit for use.
3
votes
5answers
119 views
Pair programming and unit testing
My team follows the Scrum development cycle. We have received feedback that our unit testing coverage is not very good.
A team member is suggesting the addition of an external testing team to assist ...
1
vote
3answers
264 views
What does well written, readable tests look like? [closed]
Doing unit testing for the first time at a large scale, I find myself writing a lot of repetitive unit tests for my business logic. Sure, to create complete test suites I need to test all ...
-1
votes
0answers
21 views
Coded UI Test Method failed inconsistently [migrated]
The following exception failing my UI automation test.
Message: Test method
CodedUITestMethod1 throw exception:
The playback failed to find the control with the given search properties. Additional ...
1
vote
2answers
137 views
Returning a mock object from a mock object
I'm trying to return an object when mocking a parser class. This is the test code using PHPUnit 3.7
//set up the result object that I want to be returned from the call to parse method
...
7
votes
3answers
306 views
How important are unit tests in software development? [closed]
We are doing software testing by testing a lot of I/O cases, so developers and system analysts can open reviews and test for their committed code within a given time period (e.g. 1 week). But when ...
4
votes
4answers
100 views
How to implement isValid correctly?
I'm trying to provide a mechanism for validating my object like this:
class SomeObject {
private $_inputString;
private $_errors=array();
public function __construct($inputString) {
...
6
votes
5answers
140 views
Should we exclude code for the code coverage analysis?
I'm working on several applications, mainly legacy ones.
Currently, their code coverage is quite low: generally between 10 and 50%.
Since several weeks, we have recurrent discussions with the ...
5
votes
4answers
109 views
Achieving decoupling in Model classes
I am trying to test-drive (or at least write unit tests) my Model classes but I noticed that my classes end up being too coupled. Since I can't break this coupling, writing unit tests is becoming ...
0
votes
0answers
71 views
unit/integration testing web service proxy client
I'm rewriting a PHP client/proxy library that provides an interface to a SOAP-based .Net webservice, and in the process I want to add some unit and integration tests so future modifications are less ...
3
votes
5answers
223 views
“TDD is about design, not verification”; concretely, what does that mean?
I've been wondering about this. What do we exactly mean by design and verification.
Should I just apply TDD to make sure my code is SOLID and not check if it's external behaviour is correct?
Should ...
6
votes
1answer
101 views
Unit testing a text index
Consider a text index such as a suffix tree or a suffix array supporting Count queries (number of occurrences of a pattern) and Locate queries (the positions of all the occurrences of a pattern) over ...
4
votes
7answers
287 views
Is mocking for unit testing appropriate in this scenario?
I have written around 20 methods in Java and all of them call some web services.
None of these web services are available yet. To carry on with the server side coding, I hard-coded the results that ...
0
votes
0answers
54 views
GUI Test Runner for Boost.Test
Does a Boost.Test have a GUI version of a test runner? The closest thing what I found is a Boost.Adapter for Galio (https://github.com/ndl/Gallio.BoostAdapter), but as that project been dead for two ...
0
votes
3answers
168 views
Introduce unit testing when codebase is already available [closed]
Possible Duplicate:
Best practices for retrofitting legacy code with automated tests
I've been working on a project in Flex for three years now without unit testing. The simple reason for ...
2
votes
1answer
171 views
How to unit test image processing code?
I'm working in image processing (mainly OCR) and I wonder how I should integrate unit tests in my development.
I'm already using unit tests for more "common" type of code but when dealing with image ...