Is it possible to use Visual Studio's testing system with native code? I have no objection to recompiling the code itself under C++/CLI if it's possible the code can be recompiled without changes -- but the production code shipped has to be native code.
The Premium Edition comes with code coverage support which I might be able to get ch...
./cxxtest/cxxtestgen.py -o tests.cpp --error-printer DrawTestSuite.h
g++ -I./cxxtest/ -c tests.cpp
g++ -o tests tests.o Color.o
tests.o: In function `DrawTestSuite::testLinewidthOne()':
tests.cpp:(.text._ZN13DrawTestSuite16t… undefined reference to `Linewidth::Linewidth(double)'
tests.cpp:(.text._ZN13DrawTestSuite16t… undefined reference...
Hi
I have been trying to set breakpoint in my unit test code using SenTestCase framework in xcode 3.2.2. I can see the build results properly but unable to set a breakpoint.
Anyone having an idea please help.
...
Does anyone know what unit testing tools are available when developing Tibco processes?
In the next few months I'll be working on a Tibco project and I'm trying to find any existing unit testing frameworks that might make the job easier to build with a TDD approach.
Thus far, the only one I've been able to locate is called BWUnit. It s...
I have to Unit Test a method (runMethod()) that uses a method from an inhereted abstract class to create a boolean. The method in the abstract class uses XmlDocuments and nodes to retrieve information. The code looks somewhat like this (and this is extremely simplified, but it states my problem)
namespace AbstractTestExample
{
public ab...
I'm writing detailed functional tests for my views to complement the unit tests on my models. It's a Django project and I'm using the built in Django test framework with unittest. Obviously, one of the important things to check in these functional tests is that the permissions are set up correctly. With that in mind, I'm attempting somet...
Here's what I'm trying to do. I'm using JPA persistence in a web application, but I have a set of unit tests that I want to run outside of a container.
I have my primary persistence.xml in the META_INF folder of my main app and it works great in the container (Glassfish).
I placed a second persistence.xml in the META-INF folder of my ...
I have a solution with two projects. One for project for the production code and another project for the unit tests. I did this as per the suggestions I got here from SO.
I noticed that in the Debug Folder that it includes the production code in executable form. I used NUnit to run the tests after removing the executable and they all fa...
I'm using expectedExceptionsMessageRegExp annotation to test exception message, but the this is not executing correctly.please see the below code.
Unit Test code:
@Test (dependsOnMethods = "test1", expectedExceptions = IllegalArgumentException.class ,
expectedExceptionsMessageRegExp = "incorrect argument")
public void ...
I want to write some tests that involve communicating from javascript from Silverlight and I want to know if it is possible to inject javascript at runtime?
So in my test project I have the following method in the app.xaml file and I want to be able to dynamically include\insert some javascript.
private void Application_Startup(object ...
I don't like debugging in a debugger, because I think it is often below the abstraction layer of the programming language and it is often not reproducible. I favor using unit tests when possible and I think they are a good way, but it is not always that easy to implement them. Do you know about any other alternative approaches to avoid t...
Hi all,
A fellow developer on a project I am on believes that doctests are as good as unit-tests, and that if a piece of code is doctested, it does not need to be unit-tested. I do not believe this to be the case. Can anyone provide some solid, ideally cited, examples either for or against the argument that doctests replace the need for...
In netbeans when I run my junit test it works fine, but when I debug the test it throws NoClassDefFoundError saying it can't find javax.servlet.jsp.tagext.bodytagsupport
Anyone know what could cause this?
...
I am developing an iPad application. I'm not sure if I should write unit tests for this application, and if so, how I should go about writing them.
What would you suggest as the best approach to writing unit tests for iPhone / iPad?
...
Hi,
I am drawing strings in a rectangular frame. The string is drawing perfectly. Now I need to write test cases using sentesting kit. I have no ideas from where I should start. For help I have also seen the iPhone sample calculator application
But still out of sorts.
Any body having ideas please help.
Thanks,
Madhup
...
Hi,
I'm new to moq and setting up mocks so i could do with a little help.
Title says it all really - how do I mock up an SqlDataReader using Moq?
Thanks
Update
After further testing this is what I have so far:
private IDataReader MockIDataReader()
{
var moq = new Mock<IDataReader>();
moq.Setup( x => x.Read() ).Returns( true...
I'm running a unit test using the Django framework and get this error.
Running the actual code does not have this problem, running the unit tests creates a test database on the fly so I suspect the issue lies there.
The code that throws the error looks like this
member = Member.objects.get(email=email_address)
and the model looks li...
Is there any trivial way to copy the data from developmenet database into the test one? I know theres a way to copy schema and recreate database, but is there any rake task to populate test database with development one?
...
I am writing some unit tests in Visual Studio 2010. I can run all tests by using "Run all Tests in Current Context".
However, if I write a new unit test, it does not get picked up by the environment - in other words, I am not able to find it in Test List Editor, by running all tests, or anywhere else. If I unload the project and then re...
How do I test a class that utilizes proxy clients generated by a Web Service Reference?
I would like to mock the client, but the generated client interface doesn't contain the close method, which is required to properly terminate the proxy. If I don't use the interface, but instead a concrete reference, I get access to the close method ...