Glasgow 26th September 2006 – Re-running Test-Driven Development and Code Coverage

What and When
I will be running my Test-Driven Development and Code Coverage session (for the third time) in Glasgow on the 26th of September 2006. Praise for the session can be found here.

Woodside Hall
36, Glenfarg Street
G20 7QS

Click here

Emma Britton via VBUG.

TDD and Code Coverage in .NET

Testing code can be a laborious process that is repetitive in its nature. Empirical evidence confirms that most repetitive processes enjoy a lot of success, or coverage, during early iterations, but later iterations suffer from lower coverage as the tedium sets in. For that reason, we sought to automate the repetitive testing process, i.e. we wrote some code that could replace the repetitive process. The development community achieved this by the adoption of a testing framework that embraced Test-Driven Development (TDD) and testing tools such as NUnit.

The ethos behind TDD and NUnit is “write once, use often”, i.e. once a test has been written it can be used many times. Naturally, by embodying “tests” in code and by using a tool to run those tests, we find the repetitive nature of testing disappears and the process of testing actually beings to provide confidence boosts.

However, whilst adoption of TDD and NUnit provides major advances in the reduction of repetitive testing tasks, they do not help us ensure that the tests actually cover as much of the code-base as is possible/required. It is possible to write a collection of tests that only exercise 25% of the code-base, yet because the tests are successful (i.e. they pass), the developer’s confidence is so high, s/he fails to spot that there is still a lot of test code still to be written.

Code coverage, is not a new technique, the likes of Boris Bezier discussed it in 1990 and Tom McCabe wrote about it as far back as 1976. Today, we can use graphical tools to determine how much of our code is exercised, or covered during an execution cycle. Such tools help us identify which areas of our code have not been tested and can help us direct our effort. However, they do rely on some manual effort that is repetitive, i.e. a user/developer must walk through the application. Luckily, if we are practicing TDD, we have a set of automated tests that we can tap into thus alleviate this repetition.

Over the course of 90 minutes Craig will demonstrate four .net tools, NUnit, NCover, NCoverExplorer and TestDriven.Net. All of these tools and free and work with .net 1.1 and 2.0. A variety of IDEs are supported, include Visual Studio 2003 and Visual Studio 2005. He will explain the basics of TDD and code coverage and why they are both important skills and processes to include in your development/build process. Examples will be written in C# and Visual Studio 2005.

Craig Murphy is an author, developer, speaker, project manager, Microsoft MVP (Connected Systems) and is a Certified ScrumMaster. Commercially, Craig has been using Borland Delphi since 1998; today, he uses Visual Studio 2005 and C#. He regularly writes articles product/book reviews: The Delphi Magazine, International Developer, ASPToday and Computer Headline have published his work. Craig has written for virtually every Developers Group magazine issue since the year 2000! He specialises in all things related to .NET, C#, Borland Delphi, XML/Web Services, XSLT, Test-Driven Development, Extreme Programming, agile methods and Scrum. In his career to date, Craig has written cost estimating software for the oil and gas industry and asset valuation software for local councils and the Ministry of Defence. He has a day-job, a wife and a son.

Windows Vista Developer Features Beyond .NET – 20 September, Edinburgh

Former MVP, now Microsoft employee, Dan Moth is coming to Edinburgh on the 20th of September to deliver a Vista session.

Registration is essential, follow the link on the left-hand side of this page:

Windows Vista Developer Features Beyond .NET
20 September 2006 09:45 – 20 September 2006 12:30 GMT, London
Welcome Time: 09:00
Language: English
Microsoft Edinburgh

127 George Street
Edinburgh EH2 4JN
United Kingdom

General Event Information
Products: Windows Vista.
Recommended Audience: Developer.

Windows Vista brings with it a fantastic platform for managed development, namely .NET Framework v3.0 (formerly WinFX). However, there are many new native APIs in Windows Vista that aren’t a part of .NET Framework 3.0. In this session you will discover how you – a C# or Visual Basic developer – can take advantage of this new functionality. Alongside plenty of demos, you will learn how to make your application feel like a real extension to the Windows Vista platform, and not like a ported application that just runs on it.

Technologies covered will include using the “glass” interface in your applications, new dialog box features, the RSS API, sidebar gadgets, the restart/recovery API and an overview of User Account Control (UAC) feature including how to ensure your applications work with UAC, TxF, plus many more.

9.00 for 9.45 Registration
9.45 – 11.00 Session 1
11.00 – 11.15 break
11.15 -12.30 Session 2
12.30 close

What do an ex-FBI agent and Microsoft community have in common?


Scottish Developers and the NxtGenUG are proud to announce the ‘Ed Gibson “On The Road”‘ Events which will take place mid-Septermber to mid-October 2006 at 5 venues around the country. The aim of the events are to raise awareness of the issues surrounding computer security, specifically Organised Crime and Hacking and also to raise the awareness amongst the Business and Developer communities of Developer and IT Pro User Groups and how they can help instruct and inform developers and managers about new technologies and other issues such as security.

The headline speaker is Ed Gibson the new Chief Security Advisor for Microsoft UK. Ed is an ex-FBI agent and delivers a fascinating talk on his experiences and views on security in the IT world and how to combat organised crime on the Internet.

Other speakers from the likes of Oracle will offer alternative or differing views on computer security and the event will end with an hour long ‘panel discussion’ with question and answers.

Register via here.

Ed’s Dates and Venues

Faraday Wharf,Aston Science Park
20th Sept 2006 (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Barry Dorrans and is being run by The Next Generation User Group and the Scottish Developers Group in association with Aston Science Park and iCentrum, Birmingham.

Microsoft Laboratories, Cambridge
3rd Oct 2006 (4pm-7.30pm)
This event will feature Ed Gibson and Alun Rogers of Risual and is being run by The Next Generation User Group and the Scottish Developers Group in association with the Cambridge Network.

Leeds Univeristy
12th Oct 2006(Prov) (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Duncan Harris of Oracle and is being run by the Scottish Developers Group and The Next Generation User Group in association with Leeds University.

Microsoft Offices London
26th Oct 2006 (4pm-7.30pm)
This event will feature Ed Gibson, Dinis Cruz and Chris Seary of Charteris and is being run by the Scottish Developers Group and The Next Generation User Group in association with the London .NET User Group.

Royal Pharmaceutical Society
2nd Nov 2006 (1pm-5pm)
This event will feature Ed Gibson and Duncan Harris of Oracle and is being run by the Scottish Developers Group and The Next Generation User Group.

DDD4 – Call For Speakers

Would you like to speak at one of the UK’s leading developer community events?

We’re looking for community-oriented folks to speak at DeveloperDeveloperDeveloper 4 (2nd December 2006)!

Please take a look at the submissions so far, then feel free to submit your own session!

If you are sitting on the fence or have not spoken to an audience before, fear not! DDD is a friendly place, you will be made most welcome!

As usual, the event will be held at Microsoft’s Reading Campus in Thames Valley Park.

Check out what I’ve said about previous DDD days here, here and here!