-
|
Jeff's recent post I cannot repeat enough , with both MbUnit and Gallio we have made sure that we have credited folks where we have reimplemented their ideas and concepts. If they took the time to come up with the concept\idea then we feel it was only right to credit them for that concep\idea, while there may be little legal standing it is a polite and professional thing to do. During my time as V2 lead, Roy contacted me about a failure on our part to credit him for the Rollback attribute in the MbUnit code and we quickly corrected it. It was Roys concept and it was only fair to give notice of that. Me and Jeff have recently noticed several other OSS projects who have copied some of the concepts\ideas from MbUnit\Gallio and we ask that those...
|
-
|
One of the changes made in MbUnit v3 alpha 3 was support for the Visual Studio Team System test runner. As Jeff points out, we are the first to offer this kind of support. At the moment the support is experimental but we will be driving foward more in the coming weeks and months. You will need to install MbUnit v3 alpha 3, if your upgrading from v2 to v3 there will be some compatability issues (I'll cover these in a later post). Take this simple test Make sure you have MbUnit and Gallio referanced Recompile and the test should now show in the Test View window Just like a MSTest test you can now run through the test window. Read More...
|
-
|
Jeff has news on a couple of updates to the MbUnit v3 beta 3 release including. R# 4.0 final support Factory attribute support Repeat and ThreadedRepeat attributes support CSV data source metadata Pex support Contract verifiers The R# 4.0 support does mean that you can run MbUnit 3.0 and 2.0 in R# but if you prefer you can work directly with MbUnit v2.0 (rather than through Gallio) via Alberts plugin. My thanks to Jeff and the whole team, who have worked hard to help make this happen (Jeff in particular works all hours to bring this to you). Read More...
|
-
|
I've proposed a session for MbUnit at one of the UK's best free 1 day conferences, DDD7. DDD7 will be held later this year at Microsoft UK's hq down in Reading but is organised and talks given by non Microsoft staff. The session is based on the one I gave at AgileNorth last year however I'll also be covering Gallio and the changes to MbUnit in v3. The sessions are voted by attendees and the quality of speakers and speakers is very high , I'd love to take the talk down to Reading so when voting opens do spare me a thought :) I'm also hoping to speak at AgileNorth again later this year. Read More...
|
-
|
If you have not already done so, check out Jeff's post on changes to make TestFixture optional . As Jeff notes, Jim and Brad took this line in XUnit and after consultation it was decided for MbUnit to support this. Note, it's optional so your existing tests won't break but if refactoring it out makes sense then it is available for you to do so. If you do have any thought's and feelings on this do let us know. Read More...
|
-
|
Jeff announced the release of Gallio alpha 3 yesterday , my time constriants at the moment meant I missed blogging Alpha 2 back in March but that release was a massive release in terms of features and the work that Jeff, Julian, Graham, Mark, Ben and the rest of the team have put in. I have talked about Gallio before but as a re-cap, Gallio is described best on the website "The Gallio Automation Platform is an open, extensible, and neutral system for .NET that provides a common object model, runtime services and tools (such as test runners) that may be leveraged by any number of test frameworks", What does that mean, well unit test frameworks such as xUnit.net, NUnit, Pex and MSTest can plugin into the framework (and Gallio supports...
|
-
|
You may recall ScottGu's post about the new feature in latest drop of the MS MVC framework that allows you to pick your unit test framework of choice. With Mix08 now wrapped up and the framework released I can show you what the MbUnit templates look like. You will need either MbUnit 2.4.2 or MbUnit 3.0 alpha 2, early previews of these are available if you really like the edge , but more stable drops are coming, with 2.4.2 installed here is what you will see. When created you would see The test project depends on the name of your project, for example "myproject" would be "myprojecttests" etc. The project is preloaded with your main project and a referance to the MbUnit.Framework dll. For the moment we have a default test...
|
-
|
MbUnit has achieved a lot in 2 and half years, it was around that time that Peli joined Microsoft and MbUnits future was undecided. Peli wanted to open-source MbUnit but with his new role was unable to do so. I asked Peli and Jamie if I could take this on and the code was released to Tigris and later (seeking SVN rather than the then CVS) it's present home on Google Code. Morten helped out hosting the Wiki and Defect tracker (though these are now also on Google Code). On Phil's suggestion we started a new website (although we lost MbUnit.org we gained MbUnit.com , MbUnit.co.uk and MbUnit.net) and recently added a lot of changes to the site including docs and blog lists etc. What started with a handful of people including myself, Jay and a few...
|
-
|
using MbUnit.Framework; using Rhino.Mocks; namespace Suvius.Applications.LoveDoctor.Tests { public class CritterFixationFixture { private ISpeciesSelectorPresenterView view; private MockRepository mocks; private SpeciesSelectorPresenter presenter; [ SetUp ] public void SetUp( ) { mocks = new MockRepository ( ); view = mocks.DynamicMock< ISpeciesSelectorPresenterView >( ); presenter = new SpeciesSelectorPresenter ( view ); } [ Test ] public void Should_initialize_view_with_list_of_projects( ) { using ( mocks.Record( ) ) { view.LoadCritters( ); } using ( mocks.Playback( ) ) { presenter.InitializeView( ); } } } public class SpeciesSelectorPresenter { private readonly ISpeciesSelectorPresenterView _view; public SpeciesSelectorPresenter( ISpeciesSelectorPresenterView...
|
-
|
TestDriven.Net has always supported parameterized test methods when used with the MbUnit testing framework. When using MbUnit, it is common for a single test method to execute multiple tests with different parameter inputs. The most famous of these test types is the MbUnit RowTest . Until now there has been little reason to add support for executing parameterized tests using NUnit (historically NUnit has only supported parameterless test methods). However Andreas Schlapsi has recently written an implementation of MbUnit's RowTest using NUnit 2.4's Addin extensibility mechanism. I've updated TestDriven.Net 2.11 to better support NUnit add-ins and enable the targeting of RowTests and other parameterized test types. This version also includes a...
|