|
|
Browse by Tags
All Tags » MbUnit » .NET (RSS)
-
I presented MbUnit at the Manchester ThoughtWorks geek night last Wednesday, it was a great night with lots of great questions and feedback. It was really great meeting folks who use MbUnit day to day, it really validates the work we do on the project. I think for DDD I'll change the format of my talk as I have now started thinking about a story format for the session, voting for that is due to close soon so we shall see. The next post in the MbUnit series will be about the combinatorial test. Let's take a look at the object under test first. Starting with the interface .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: Read More...
|
-
Factories in MbUnit work in much the same way in v2 (where they have been available since the start) and v3, in v2 we would use a Factory as follows. .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } 1: using System.Collections; 2: using MbUnit.Framework; 3: 4: public class ArrayListFactory 5: { 6: [Factory] 7: public ArrayList ProviderEmptyArrayList 8: { 9: get { return new ArrayList(); } 10: } 11: 12: [Factory] 13: Read More...
|
-
"You said no RowTest post!" I know I did but this v3 feature I'd like to talk about, Row value headers, let's look at this example. .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } 1: [Test] 2: [Row(1, 3, "test" )] 3: [Row(2, 2, "test" )] 4: public void Example( int sum1, int sum2, string value ) 5: { 6: Assert.AreEqual(4, sum1 + sum2); 7: } Here we have a row test with sample values (note you can mix types in this way) Read More...
|
-
This is the first of series of posts I'll be running on MbUnit, I'll focus on v2 first and then show an example in v3. I won't focus on RowTest as this is a popular feature and is well known both by the MbUnit audience and by other frameworks. For the opening post I'll focus on the TypeFixture, let's take a look at the code. .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: Consolas, "Courier New", Courier, Monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; } 1: using System; 2: using System.Collections; Read More...
|
-
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 concerned give us the same consideration. Read More...
|
-
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 them all) or frameworks like MbUnit v3 use it directly. It's runners then use that framework and Gallio has the largest set of runners of any unit test framework to date. GUI (Icarus) Console (Echo) TD.NET R# VSTS CCNet Powershell The runners them selfs are Read More...
|
-
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 for the controller, which looks like. using MbUnit.Framework; [TestFixture] public class HomeControllerTests { [Test] public void About() { // // TODO: Add test logic here // } [Test] public void Index() { // // TODO: Add test logic here // } } Notice default tests for your Read More...
|
-
As I mentioned in my last post I did'nt have an internet connection for most of the day so did'nt get a chance to write up yesterdays AgileNorth 2007 conference where I was speaking on MbUnit . I did manage to write up my thoughts on my way home and here they are. Today was a long day, I did'nt get to bed until 1am, was up at 6am and I write this on the train home and its pushing 8pm. I do find conferences really take it out of you and speaking is even more draining, worrying about your session and then winding down after wards. I really enjoyed today though, my session was very well attended (around 30 in a room that holds 31/32) and I was up against Luke Barrett :) I had some great questions and I have taken a lot of value in the discussions I had afterwards with folks. With this mornings release of V3 I coded some V3 demos after my session and managed a 'scottgu' in taking a group of folks through it in the bar after the conference wrapped up. I really enjoyed meeting everyone and had Read More...
|
-
I am running behind today, I had very limited internet access yesterday so this is a little behind. It's been a little over three months since our last release of MbUnit but we been stepping up the work we have been doing since on the summer to bring you the first cut of Gallio Test Automation Platform (Gallio for short) and MbUnit v3. This project has been a massive undertaking in that entire code base has been rewriteen, a ground up rewrite of everything, framework, runners, everything. As ever my thanks to the entire MbUnit commit team (in particular Jeff as v3 lead, Julian, Vadim and Graham). The release notes which I am taking from Jeffs post are as follows (FYA if you not already done so I highly recommend you add Jeffs blog to your reader of choice, Jeff will be working up more posts on features and functionality that you will want to check out). Alpha 1 marks a significant milestone: much of the groundwork is in place. It doesn't look like much yet, but there's a whole lot going Read More...
|
-
Next month I'll be talking about MbUnit at the AgileNorth 2007 conference , this is a one day event to be held in Manchester, UK and will feature sessions from folks such as ThoughtWorks and Exoftware. MbUnit folks will also be on the road into the new year with Ben Hall giving a session at the NextGen UG in January next year . Read More...
|
-
Members of the MbUnit team will be on the road in the coming months. Jeremy alluded to the fact that MbUnit will have a presence at next months alt.net conf and this will in fact be in the shape of Jeff Brown, the primary lead on the MbUnit Gallio framework . Jeff will of course be talking all about Gallio and the next generation of MbUnit so his session will be well worth catching. In November the annual 1 day DDD conference will be held here in the UK. Sessions require voting and if you are interested in learning from team member (and red-gate test engineer) Ben Hall about testing, improving your testing and what Gallio is all about then be sure to vote for Ben's session . Read More...
|
|
|
|