« Ridiculous Legalese | Main | The CodePlex Team and the patterns & practices Summit »

September 20, 2007

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d8354604d653ef00e54ef7de528834

Listed below are links to weblogs that reference Announcing xUnit.net:

» Announcing xUnit.net from James Newkirk's Blog
I have just blogged about a new testing framework that Brad Wilson and I have developed. Click here for [Read More]

» Announcing xUnit.net! from Brad Wilson - The .NET Guy
[Read More]

» xUnit.net: new unit testing framework for .NET 2.0 from DotNetKicks.com
You've been kicked (a good thing) - Trackback from DotNetKicks.com [Read More]

» xUnit.net - New Unit Testing Framework Based on NUnit from David Hayden - Florida .NET Developer - C# and SQL Server
[Read More]

» xUnit.net from Normal people bores me!
xUnit.net [Read More]

» xUnit.net: un'altro framework per unit test from makka
xUnit.net: un'altro framework per unit test [Read More]

» Goodbye NUnit, Welcome xUnit.net! from iFX
Goodbye NUnit, Welcome xUnit.net! [Read More]

» xUnit.net - what the fudge from Noticias externas
So we have nUnit, mbUnit, the not invented here unit testing in VS (if youre willing [Read More]

» xUnit.net test framework - looks xInteresting from Kirk Jackson's Page of Words
[Read More]

» xUnit.Net (beta) from nblog
Wczoraj James Newkirk, jeden z twórców NUnit ogłosił wydanie pierwszej wersji (beta) nowego środowiska [Read More]

» New and Notable 193 from Sam Gentile
Yesterday, it was thank God for coffee. Today, its thank God for a StarBucks Quad Venti Expresso [Read More]

» xUnit.net - New unit testing framework for .NET from Digital Blasphemy
xUnit.net - New unit testing framework for .NET [Read More]

» A new unit test framework for .NET: xUnit.net from Drew Miller
James Newkirk and Brad Wilson (my superior CodePlex colleagues) have released a new unit test framework [Read More]

» A new unit test framework for .NET: xUnit.net from Noticias externas
James Newkirk and Brad Wilson (my superior CodePlex colleagues) have released a new unit test framework [Read More]

» Announcing xUnit.net! from Brad Wilson - The .NET Guy
[Read More]

» xUnit.net released from jenswinter.com
[Read More]

» xUnit.net, one more to the mix. from Andrew Stopford's Weblog
I was away on vacation this week and when ever I go away the week is eventful, I came back to the news [Read More]

» xUnit.net, one more to the mix. from Community Blogs
I was away on vacation this week and when ever I go away the week is eventful, I came back to the news [Read More]

» VSTS Links - 09/24/2007 from Team System News
Sudhir Hasbe on TFS: Failover options and TFS Failover: SQL Mirroring. Mithund on geekSpeak recording... [Read More]

» xUnit.net... from Eric Gunnerson's C# Compendium
From Jim Newkirk, one of the original NUnit authors... xunit.net [Read More]

» xUnit.net... from Noticias externas
From Jim Newkirk, one of the original NUnit authors... xunit.net [Read More]

» Link Listing - September 24, 2007 from Christopher Steen
ResolveUrl() without Page [Via: Rick Strahl ] YUI Version 2.3.1: Bug-Fix Release [Via: Eric Miraglia... [Read More]

» xUnit released from #2872
xUnit is the latest greatest unit testing framework from Jim Newkirk, one of the original authors of NUnit. Jim, Brad and the CodePlex team have finally released it on xUnit.net. I went to a talk by Brad on xUnit a while back its got lots of co... [Read More]

» xUnit.Net - новий фрамеворк для юніт тестінгу from Mike Chaliy's Blog
Хлопці (один з них до речі розробник NUnit, тепер працює в Microsoft) поміркували і вирішили що NUnit [Read More]

» Izindaba #11 from From the software development trenches
It is time for another weekly roundup of news that focuses on .NET, agile and general development related [Read More]

» xUnit.net from Joycode@Ab110.com
上个月,NUnit的作者James Newkirk 宣布推出 了新的单元测试框架, xUnit.net 。他列出了从以前的单元测试框架得到的教训后所做的改动: 每个测试方法都对应一个新对象实例。 为提高测试的隔离性 [Read More]

» xUnit.net announced from dave^2=-1
Interesting times in the area of automated testing for .NET. James Newkirk , who previously worked on [Read More]

» SetUp and Teardown Methods in Test Classes from Scott Bellware [MVP]
Jim Newkirk is blogging about the down side of setup and teardown methods in test classes, and why you [Read More]

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Joshua Flanagan

I think a console runner is sufficient. Don't waste resources on a GUI runner - just make sure to give Jamie Cansdale any help he needs adding TestDriven.NET support.

Brad Wilson

Joshua, we're already shipping support for TD.NET :)

Haacked

Could you post some code snippets of tests. For example, one with the rollback you mentioned. Also, is there a way to do parameterized tests ala MbUnit's RowTest?

I like the reduction of attributes. It's a great idea.

Chris R. Chapman

Seriously good work! Glad to see some rational, experience-driven advances made in the TDD sphere with this release.

Kudos!

Troy DeMonbreun

No SetUp or TearDown is throwing out the baby with the bathwater, IMHO, FWIW, YMMV. My point being that it will be hard to supplant NUnit without it. Maybe some optional/non-default/buried approach (not sure what that would look like, OTTOMH) would encourage users to go to xUnit.net.

Herb

I love seeing new, fresh products that look to improve on what I'm already using. However, from just reading this page I'm not interested in your application. It seems like every bullet point is either about a feature you don't support or about a feature that requires extra coding from me to get working. I'm sure your product offers something that nunit does not, otherwise you wouldn't have written it. But I don't see much on this page that explains what those advantages are. Please take this as helpful feedback. I'm really not trying to be a jerk here. I just think you need to do a better job of selling your application here. Good luck!

Brad Wilson

Troy, you can use constructor/IDisposable.Dispose() as a direct replacement for SetUp and TearDown.

Haacked, in xunit.extensions is a new test attribute called [Theory], which allows data driven tests. We need to publish some samples of it, but for now you can see examples within the unit/acceptance tests in Tests.xunit.extensions.

Dan

This all sounds great... As a long time user of NUnit (and when I was coding Java last 2-3years back, JUnit), its great to see the framework 'evolve'...

Whilst I share some of the concerns of loosing [SetUp] and [TearDown], Im fairly confident that once i see example code of the newer syntax, it'll all be clear...

I do tho, have one suggestion.

The initial version will ship with just a console-runner, which is fair enough. But how about in the next version, a .NET plugin which can be launched from a button click. The button click will compile the test code and the targetted .dll/.dll's and present a 'results window' or even present the results in the workspace. Will just save developers some slight hassle of having to jump back and forth between windows; we can just stay in the .NET IDE...

Just my 2cents.

Keith Reichert

Would adding SetUp and TearDown properties to the Test attribute be beneficial? You could have tests in a fixture that don't need to have SetUp and TearDown methods. There could also be sets of tests that run completely different Setup and TearDown processes in the same fixture. Not to mention that you could look at any test and see what sort of SetUp and TearDown methods are required.

DM

This sounds great. The only thing that is kind of annoying is the name. I've always heard "xUnit" used to describe any of the unit testing frameworks. See: http://en.wikipedia.org/wiki/XUnit

Again, it really sounds great. Just nitpicking on the name.

Haacked

I don't think people are getting the fact that this bullet point:

* Single Object Instance per Test Method

Negates the need for Setup and TearDown. How do you setup and tear down a normal CLR object? Constructor and Dispose method (assuming IDisposable).

Mike Gale

What happens with existing projects that include large numbers of tests? When it comes time to enhance the project, I think most development teams will stick with the existing tests. The development time that goes into these tests is likely a big part of the effort spent.

Backward compatibility seems like a really good idea to help transition. Else we are creating "legacy tests".

I know that tests can be more important than the "conventional code base".

yup

Nothing says both NUnit and xUnit can't both be used per solution, right?

Brad Wilson

That is correct, yup. You can have both NUnit and xUnit.net tests in the same assembly.

You can either "run" the assembly twice, one with each runner, or you can add "[RunWithNUnit]" to your NUnit fixtures so that the xUnit.net runner will actually run your NUnit tests. The [RunWithNUnit] attribute comes from xunit.extensions.dll.

Steve Freeman

Interesting proposal and nice to see the shared instance stuff go.

Have you also looked at jUnit4's adoption of Hamcrest (a matcher library) for implementing assertions? It's working pretty well for us and allows people to write custom assertions. I believe Charlie Poole included something equivalent in NUnit.

S.

Brad Wilson

Steve, I've looked at the BDD style assertions in the past, and I can see there is value for both camps. We didn't provide that style of assertion, primarily for simplicity reasons. Speaking for myself here (and not Jim), I'm not a huge fan of giving people multiple ways to do something, because it really just confuses the issue of "which one is better".

Writing BDD style assertions that work with xUnit.net should be relatively trivial (after all, test frameworks are really just about throwing exceptions when things go wrong). It would be interesting to see if the community would be willing to contribute a "standard" extension to xUnit.net for BDD style assertions. For that matter, such a library should work with any of the .NET unit testing frameworks.

I feel the same way about mock object frameworks, personally. It doesn't have to be part of the unit testing framework; one should be able to pick and choose the pieces they want (NMock with NUnit, Rhino Mocks with xUnit.net, etc.) without feeling like one choice locks you into another.

jm2c :)

Yves Hanoulle

@Dan:
>But how about in the next version, a .NET plugin which can be >launched from a button click.
you can already do this with all console or gui testers:
you can confiure your visual studio to run any application when you run a project. (right click project/ select properties/ ...)

kuldip

yeah. I don't think gui runner is necessary. Console runner is good enough.

Kevin Dente

The removal of the TestFixture attribute is a drag for those of us who like to keep their test fixture classes in the same assembly as the classes under test. Seems like it would make finding all the test methods much slower.

James Newkirk

Kevin,

With regard to speed, are you concerned about the runners ability to find the tests or for the people looking through the code?

JIm

Kevin Dente

Jim,
The runner's ability to find the tests. I always separate the test fixture classes out into a separate folder, so reading the code isn't really an issue.

Jebs House

I'm not sure what the hold-up is... maybe they have re-thought their stance on how this is going to actually make the company any money. Or perhaps their lawyers pointed out the liability of providing agents a platform to stick their feet in their mouth. Whatever it is, it's hardly something I'd claim as being "Well done".
www.jebshouse.com

james wilson

I am not entirely satisfied with this application which could have been much more advanced.

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment