Fervent Coder

Coding Towards Utopia...by Rob Reynolds
posts - 278 , comments - 431 , trackbacks - 0

My Links


Rob Reynolds

Subscribe to Fervent Coder RSS
Subscribe to Fervent Coder by Email

About Me

I manage several open source projects. Need...
   ...package management for Windows?
   ...automated builds?
   ...database change management (migrations)?
   ...your application to check email?
   ...a monitoring utility?

I also write for

Like what you are reading? Want to buy me a cup of coffee?
PayPal - The safer, easier way to pay online!



AutoTest.NET - AutoSpec for .NET

Recently I mentioned I mentioned that I wanted AutoSpec in .NET, but it looks like James Avery has already created it awhile back as AutoTest.NET.

I gave the project a little automated build love using UppercuT (a super simple to use build framework. Automated builds as easy as 1 (solution name), 2 (source control path), 3 (company name)). 



Then I noticed the project looked like it wanted to use log4net, but hadn't really sat down and put that in yet. So I added that as well, plus a few more logging notices (in the picture below you see a log4net configuration error in grey - If I had to guess, my configuration is missing something that Ninject uses for logging). I will be trying to get on as a committer, but if I can't, I will just submit a patch.


In this picture you can see that I had this running. I put an Assert.Fail in the test and built the project.  AutoTest detects the change, automatically runs my unit tests, and gives feedback very quickly.  So I get a nice message telling not only that I have unit tests failing, but which ones they are.  Then I fixed it and rebuilt the project. This is pretty handy and keeps me continuously verifying my code. 

This is set up to work with MbUnit, but I believe it is a very simple change to the configuration file to point to where NUnit is installed.

<add key="UnitTestExe" value="C:\Program Files\MbUnit\bin\MbUnit.Cons.exe" />

Here are the files - http://cid-f49e97be09af5549.skydrive.live.com/self.aspx/Public/autotestnet.zip

Just run build.bat and you are good to go.

Have fun!

Print | posted on Sunday, April 26, 2009 4:39 AM | Filed Under [ Code ]



# re: AutoTest.NET - AutoSpec for .NET

Changes are in Source! http://ferventcoder.com/archive/2009/05/08/autotest.net-changes-now-in-source.aspx
5/8/2009 4:08 PM | Robz
Comments have been closed on this topic.

Powered by: