Archives

Next Archive Previous Archive

01 Sep - 30 Sep 2003
01 Oct - 31 Oct 2003
01 Nov - 30 Nov 2003
01 Jan - 31 Jan 2004
01 Feb - 28 Feb 2004
01 Mar - 31 Mar 2004
01 May - 31 May 2004
01 June - 30 June 2004
01 Jul - 31 Jul 2004
01 Nov - 30 Nov 2004
01 Jan - 31 Jan 2005
01 Apr - 30 Apr 2005
01 May - 31 May 2005
01 Jul - 31 Jul 2005
01 Aug - 31 Aug 2005
01 Sep - 30 Sep 2005
01 Oct - 31 Oct 2005
01 Nov - 30 Nov 2005
01 Dec - 31 Dec 2005
01 Jan - 31 Jan 2006
01 Feb - 28 Feb 2006
01 Mar - 31 Mar 2006
01 May - 31 May 2006
01 June - 30 June 2006
01 Aug - 31 Aug 2006
01 Sep - 30 Sep 2006
01 Nov - 30 Nov 2006
01 Dec - 31 Dec 2006

Last Comments

zenegra (NUnit add for Mon…): viagra pharmacy silagra viagra prescription viagra …
order viagra4809 (Visiting Mexico): nfinkbSorry for that.
buy fioricet9244 (Planning MonoDeve…): oojrdoSorry for that.
buy ambien4711 (Jazztel: no ADSL …): speojeSorry for that.
order carisoprodo… (MonoDevelop impro…): haniohSorry for that.
buy vicodin1750 (Another TreeView): jekcrcSorry for that.
generic nexium892… (Back from holiday…): fmefccSorry for that.
buy valium2307 (So many news in M…): hmjwtlSorry for that.
order ambien6966 (Summer is approac…): lghptpSorry for that.
buy fioricet1110 (Namibia): tkksjrSorry for that.

Last Referrers

13:02 moldovamap.ru/up.html
13:02 nebo9ei.ce.ms/sitemap.html
13:00 ft-gaz.ru
12:56 moldovamap.ru
12:55 lovefreeru.xtreemhost.com/site…
12:55 veneramarshv.noadsfree.com/sit…
12:55 moldovamap.ru/maps
12:55 k-flex.org
12:52 buyhghsupplement.info/2007/08/…
12:50 moldovamap.ru/2008/08/05/gpsma…

Links

Google
Pivot

To change this list, edit the file '_aux_link_list.html' in your pivot's templates folder.

Stuff

Powered byPivot - 1.24.3: 'Arcee' 
XML Feed (RSS 1.0) 

About

This is the default template for Pivot. You can change this text by editing the file templates/frontpage_template.html in your pivot folder.

Linkdump

+ 4 - 6 | § NUnit add for MonoDevelop

Yesterday I committed a rewrite of the NUnit addin of MD. The new addin has a lot of new features, and integrates very well with the project system. This is how it looks like:



The addin adds two new pads to MD: the first one is the test tree, which includes a sub-pad that shows information about the currently selected test. The second pad is the results pad. This is created when you start a test session from the tree.

So, what does the test tree show? it is a view of the test structure provided by the currently opened solution. It'll show all tests provided by all projects in the solution (and contained solutions). There are two kind of projects that the addin takes into account to build the tree:
Test sessions can be started from the test tree by double clicking the root test. The tree will show the result of each test with a color, and the current executing tree with a blue circle, so you can easily track what is happening. When a test session is started, the addin creates a results pad which will be filled with the tests that failed or have been ignored. There are some buttons for filtering the type of results you want to see:



The tests are also run out of the MD process, so MD stability is not compromised, and you can freely change, recompile and run the tests as many times as you want (this is a problem in GNunit, since if you change the dll or any related library you need to reastart and reload the tests).

The addin keeps an history of test runs and results, and you can easily browse them using the results chart and the test details window. The chart shows the progress of successful runs and failures in a graphical way, and it is also used as a date selector. The list below the chart shows a sumary of results for the test selected in the tree and at the date selected in the chart. There are in fact three lists: one that shows a results summary of the child tests, another one that shows all failed test cases, and the last one shows a list of test regressions.

To see test regressions you need to select two dates, and the list will be filled with tests that worked fine in the first date but failed in the second date:



The chart has several options in the context menu, one of them is showing the time spent running the test, instead of the results:



The results are stored in a directory under the project or solution directory.

The addin has support for project configurations. So for example, you could have a project with two configurations, one for .NET 1.1 and another one for .NET 2.0, that would generate a different dll for each configuration. Information about tests and its results is stored independently for each configuration. So, if you change the active configuration (by using the new configuration selector in the toolbar) you'll see how the test tree is updated and the details pad shows the data for the new configuration.

From the implementation point of view, what's interesting to notice is the plethora of extensions the addin is using:
It is also worth to mention that the NUnit addin itself is also extensible. The test tree is build using a TreeViewPad, so another addin could add new node types, custom rendering for existing ones, new menus and options. The options dialog can also be extended with new option panels. There is also the interface ITestProvider you can implement to provide a test hierarchy for a custom project. In fact, the Mono class library development extensions addin is using that interface to populate the test tree with the unit tests for the mono assemblies.

It's nice to see that the architecture redesign done in the last months is being so useful. I hope this will engage other people in writing addins for MD, it's real fun, I promise.