Unit testing is a method by which individual units of source code, sets of one or more computer program modules together with associated control data, usage procedures, and operating procedures, are tested to determine if they are fit for use.

learn more… | top users | synonyms (4)

0
votes
0answers
8 views

Mocking network packets from different IP addresses for java unit tests

I need to test java code that receives network packets from multiple IP addresses. How can I mock the system up in Java unit test?
0
votes
2answers
13 views

How does a unit test know when to pass or fail?

I'm reading Dependency Injection for .NET and following along with some of the samples in the book and it lead me to a question about unit testing. How does a unit test know when to pass or fail? Not ...
0
votes
0answers
5 views

Make autoconf “check” target without running it

Is there a way to compile the "check" target of an autoconf project without running it? I have Eclipse Juno with the "C/C++ Unit Test" plugin. I would like to be able to make the check target, then ...
2
votes
1answer
38 views

Test doesn't execute method unless I assert on the method's returned value

Ok, I have a strange problem. I'm using NUnit and Moq in a C# Test project. I think you can ignore the Mock-objects, since the real problem lies in UserManager.AddUser() not being properly executed. ...
1
vote
1answer
22 views

flask unit test: how to test request from logged in user

I'm writing some unit tests for my Flask web application and I'm trying to test the differences in the response between a request made by an anonymous user and a logged in user. I'm using the ...
0
votes
1answer
13 views

How to unit-test custom AJAX events

I have a javascript application where users can search for locations that are then displayed on a map. The search for locations is done with AJAX calls to a server application. There is one component ...
2
votes
4answers
44 views

Junit - Writing a single Unit Test for multiple implementations of an interface

I have an interface List whose implementations include Singly Linked List, Doubly, Circular etc. The unit tests I wrote for Singly should do good for most of Doubly as well as Circular and any other ...
0
votes
3answers
26 views

Unit testing. About independent tests

Before downvote my question please listen :) I use unit test. And I know they must be independently from each other. Though how to test repository for book. First book must be created, then updated ...
0
votes
2answers
25 views

Testing a Spring MVC controller method with Spring MockMvc* classes

I am trying to test the following Spring mvc controller method: @RequestMapping(value = "/preferences/email", method = RequestMethod.POST, produces = "text/html") public String ...
0
votes
0answers
15 views

How to cleanly test a Caliburn.Micro coroutine?

I am currently trying to test a Caliburn.Micro coroutine, but I am not really sure how to approach it so the test looks clean. Assume a coroutine that first shows a message of the type "Are you ...
0
votes
1answer
20 views

Should unit tests run faster with a gevent patched codebase?

We’re investigating gevent as a drop in performance enhancer for our Flask API. There is a lot of communication over psycopg2 and Redis in our codebase. We thought we’d try running the test suite with ...
0
votes
0answers
11 views

How to remove error come during execution of unit test in vs 2012

[TestMethod] public void Index1() { MovieDBContext db = new MovieDBContext(); //Arrange MoviesController mv = new MoviesController(); //Act ...
0
votes
0answers
15 views

Visual Leak Detector not working with Unit Test in VS2012

I'm using the CppUnitTestFramework of Visual Studio 2012 for unit testing my c++ code. Now I want to check for memory leaks using Visual Leak Detector. So I put #include "vld.h" into my test class ...
2
votes
0answers
21 views

Resharper runs UnitTest form different location

When i run unit tests with Visual Studio it works fine, becouse it runs from project directory where all assemblies are. But when i run it with resharper it goes with error on var services = ...
1
vote
0answers
15 views

Tornado testing async requests

I need an advice regards testing tornado app. For now I just playing with demo chat application, but it looks like real-life problem. In the handler I have: class ...

1 2 3 4 5 1194
15 30 50 per page