On Windows XP, using TDM's GCC/MinGW32 for basic development i.e. gcc 4.4.x with gdb. Which unit testing framework to use for test driven development?
Apparently Check's unit tests don't yet work on Windows.
The questions at Unit Testing Frameworks for C and Unit Testing C Code are similar but not specifically about using gcc 4.4.x on ...
Just to clear the air, I am not some cruel factory master trying to silence working ladies. I am having a very annoying problem where when using Thoughtbot's factory girl in my specs, every time Factory.create(:foo) is used, the newly created ActiveRecord model instance is logged to the console. This makes looking at my console output ...
hi, I have a function which opens up the help file for the app. The function takes 3 arguments :
ShowHelp(appPath, 1,
@"heelp\help.doc")
The first argument is the start path.
The second argument is the no of
levels up the start path.
The third argument is the path of the help file
after going up n levels from the
start path.
...
I would be interested in looking at a list of projects that did and did not do unit testing, and other forms of regression testing, to see how those companies turned out.
All test infected developers know it saves them time, but it would be interesting to what correlation there is between code quality/test coverage and business success....
I have come to something of a crossroads. I recently wrote a 10,000 line application with no TDD (a mistake I know). I definitely ran into a very large amount of errors but now I want to retrofit the project. Here is the problem I ran into though. Lets take a example of a function that does division:
public int divide (int var1, int var...
I'm moving my continuous testing to a dedicated server (autotest slows down my local laptop too much). What I'd like is for my testing server (which happens to be running CruiseControl.rb) to be continuously getting my latest (committed) changes via Git -- ideally, without any changes to my own workflow. I am the only developer working o...
I have never used unit testing before, so I'm giving CxxTest a go. I wrote a test to check if a function correctly sorts a std::vector. First I made sure the test failed when the vector wasn't sorted, and then as a sanity check I tested whether std::sort worked (it did, of course). So far, so good.
Then I started writing my own sorting ...
I've read a lot about Test-Driven Development (TDD) and I find the principles very compelling, based on personal experience.
At the moment I'm developing a web-site for a start-up project I'm involved in, and I'd like to try my hand at putting TDD into practice.
So ... I create a blank solution in Visual Studio 2010, add an ASP.NET MVC...
I'm working in a team of 2 front-end developers on a web-based late-stage startup project.
The site works quite well, but there's a lot of room for improvement code-wise, as the code is quite messy and disorganized.
I would like to clean things up gradually by writing tests and carefully refactoring to avoid breaking anything. (Using p...
Let me start from definition:
Unit Test is a software verification and validation method in which a programmer tests if individual units of source code are fit for use
Integration testing is the activity of software testing in which individual software modules are combined and tested as a group.
Although they serve different purposes ...
I work in a great company (.net consultancy) with some great devs, but some of the older hands have approached me wanting me to help them become "more modern" in their approach to software development. they would like to get more into
Agile mindset
TDD/BDD
IOC/DI
I'm absolutely no guru, but I do have strong opinions on these matters,...
So, I've spent a couple of hours first trying to "fix" this myself and then Googling like a madman but didn't find anything that would've helped so now I'm here.
Basically I have a custom Panel within Wicket's own ModalWindow and since I like unit testing, I want to test it. The specific behavior here is refreshing the ModalWindow's con...
How can I test my code (TDD) for standard CRUD operations without having a database. Is it possible to achieve such level of isolation so that my code is database independent.
Thanks a lot guys.
...
Hello!
I know that TDD helps a lot and I like this method of development when you first create a test and then implement the functionality. It is very clear and correct way.
But due to some flavour of my projects it often happens that when I start to develop some module I know very little about what I want and how it will look at the e...
Hi, my controller can return different views depending on action method logic. Action method 'Create' asks service to do some validation and persistence. If validation fails, action method returns same 'Create' view. If validation and save runs OK, action method returns 'Index' view (RedirectToAction).
I know that getting view name is po...
I am learning about Unit Testing and want to know how to write testable code. But, I'm not sure how to write testable code without making it complex. I'll take famous Car and Engine problem to describe the problem.
class Car
{
private:
Engine m_engine;
public:
Car();
// Rest of the car
}
I came up with following solutions to...
i wonder whether it is possible to have a fixture that can be shared between testcases for instance a hibernate session.
Thank you!
...
Hello,
If that title did not make sense (which I'm expecting =)) here is what I'm asking:
I have a function called ParseFile(). It takes a string as parameter, and a DataTable as a return value.
I want to unit-test this function. Is it wrong of me to code the function first, run it, take the output, serialize it to XML, save it as exp...
How can i test that a particular method was called with the right parameters as a result of a test? I am using nunit.
The method doesn't return anything. it just writes on a file. I am using a moq object for System.IO.File. So I want to test that the function was called or not.
...
We have just released a re-written(for the 3rd time) module for our proprietary system. This module, which we call the Load Manager, is by far the most complicated of all the modules in our system to date. We are trying to get a comprehensive test suite because every time we make any kind of significant change to this module there is h...