Any better way to do this? I've used the Continuous Testing AddIn from visual studio gallery, but does not work with SolutionFolders..
so I just added a "Post Build Macro" with
"C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe" /testcontainer:"$(TargetPath)"
Works great, but when there are errors, all I get ...
I ran this test script:
use strict;
use warnings;
use Test::More tests => 3;
use Carp;
ok(1<2);
pass();
fail();
croak "example";
using the command line prove -MCarp=verbose -v foo.pl, and got the following errors:
Subroutine App::Prove::verbose redefined at /opt/ActivePerl-5.12/lib/App/Prove.pm line 407
App::Prove::_load_ext...
Hello All,
We have a set of integration test which depend upon same set of static data. Since the amount of data is huge we dont want to set it up per test level. Is it possible to setup data at the start, run group of test and rollback the data at the end of test.
What we effectively want is the rollback at test suite level rather tha...
Is having more than one assert per test a really bad smell? I usually try to follow the “arrange, act, assert” pattern as well as the single assert per test guideline. I think having clean, small, isolated tests is pure awesomeness. For the most part I manage to do this. However, sometimes I find myself asserting “pre-conditions” right...
i like cucmber stories. they just look great. I am trying to find a way to use them in my daily work as a projet manager / developer / tester / analyst (you name it :p).
problem ?
my clients speak french only. No english.
i see that cucumber seems to support 40 languages (wow!) => http://wiki.github.com/aslakhellesoy/cucumber/spoken-la...
I've been able to use MvcContrib.TestHelper.WatiN to unit test textboxes and drop-downs, but have been unable to get it to work with radio buttons. I keep getting an exception stating that the HTML Element cannot be found, however, I've checked and the name is correct in the source. Does anyone know of an example using MvcContrib.TestH...
I'm pretty new to workign with Javascript.
In most languages you can run the code quickly locally on your machine. From what I've seen, in JS you generally only use it via the browser, and so I've been uploading my code an viewing its effects in the browser. This has proven very tiresome. Also, if I mak one error, it seems like my...
I've been looking for a definitive web resource to help with this, but no luck so far. So :how do I run unit tests as part of a TFS build? I have a number of questions for this, so to make it easier I've numbered them in this post. Sorry for this post's length.
Visual Studio Team System 2008 is installed on my build machine.
I have a ...
Hello,
I am using Boost.Test library for implementing unit test cases in C++. Suppose I have two suites such as
BOOST_AUTO_TEST_SUITE(TestA)
BOOST_AUTO_TEST_CASE(CorrectAddition)
{
BOOST_CHECK_EQUAL(2+2, 4);
}
BOOST_AUTO_TEST_CASE(WrongAddition)
{
BOOST_CHECK_EQUAL(2 + 2, 5);
}
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_SUITE...
The intention is to test a J2ME application I am developing.
I came across Robot Framework, but not sure if it can be applied to J2Me applications.
Are there any other you are aware of?
Preferably, I would want a tool that can support headless mode for testing the app.
...
I have some answers! Feel free to contribute your own findings.
As far as I know, there are 3 main ways to retrieve a simple list of Team Projects from TFS:
Using the new Catalog service (TFS 2010)
Using the VersionControlServer (TFS 2008/2010)
Using the ICommonStructureService (TFS 2008/2010)
The simple tests I conducted compared t...
Hi,
I am interested in the best way to write unit tests for a class whose public API involves some kind of a flow, for example:
public class PaginatedWriter {
public void AppendLine(string line) { ... }
public IEnumerable<string> GetPages() { ... }
public int LinesPerPage { get; private set; }
}
This class paginates text lines into t...
I'm testing a certain class. This class is internally instantiating a "GetMethod" object that gets passed to a "HttpClient" object that gets injected into the tested class.
I'm mocking the "HttpClient" class, but I would need to modify the behaviour of one method of the "GetMethod" class too. I'm playing with ArgumentCaptor but I don't ...
I can find many explanations on difference between black box and white box testing, but couldn't find any better explanation on Red box, Yellow box and Green box testing.
Can someone please explain these types of testing terms? Examples will be appreciated.
Thanks in advance.
...
How do people test heavy UI applications? Specifically, the UI is in a web browser in an SVG or Canvas element.
Like, say most of the application is drag/drop and resizable and different things that happen as a result of dragging to a certain place or resizing to a certain size.
What are some strategies people use today?
...
Hello,
I have a bash scripting question please.
I would like to test if my variable $var is actually an integer or not.
How can I please do that?
Thank you very much,
Jary
...
I am using the Perl prove testing utility (TAP::Harness) to test my program.
I need to run the same tests first on a local computer, then on a remote computer.
(Test programs should connect to localhost or to remote host, respectively)
How can I pass parameters (test_server) to tests using prove? I should use environment or there is bet...
Hi,
I need to fire up an application acting as a web server and wireshark, wait for a connection, exchange data, take screenshot of the web server application and wireshark debug window, and close both applications. I need to repeat this every hour.
What are the best programs for this?
...
class Category < ActiveRecord::Base
acts_as_tree
end
How to test that acts_as_tree gets called?
Or that any other in class body method gets called?
...
I have a soap web service which accepts file attachments, these I process on the server and push as a base 64 encoded file.
What I want to do is create some test images, pdfs, text files, word docs, etc that are increasingly large.
For example:
Create a set of images that are 10 KB, 15 KB, 20 KB, ... N KB.
Create a set of pdfs th...