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)). 

 

image

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.

image

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 @ Sunday, April 26, 2009 4:39 AM

Comments on this entry:

Gravatar # re: AutoTest.NET - AutoSpec for .NET
by Robz at 5/8/2009 4:08 PM

Changes are in Source! http://ferventcoder.com/archive/2009/05/08/autotest.net-changes-now-in-source.aspx
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: