Agile Tools for 'NET - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Agile Tools for 'NET

Description:

Agile Tools for .NET. Joe Walnes. jwalnes_at_thoughtworks.com. Owen Rogers. orogers_at_thoughtworks.com ... NUnit 1 is a direct port of JUnit. NUnit 2 is a complete ... – PowerPoint PPT presentation

Number of Views:81
Avg rating:3.0/5.0
Slides: 15
Provided by: gregor116
Category:
Tags: net | agile | owen | tools

less

Transcript and Presenter's Notes

Title: Agile Tools for 'NET


1
Agile Tools for .NET
  • Joe Walnes
  • jwalnes_at_thoughtworks.com

Owen Rogers orogers_at_thoughtworks.com
2
Agenda
  • Unit testing
  • Endo testing
  • Build management
  • Continuous integration

3
Agile Development Cycle
Code
IntelliC?
NUnit
NMock
Test
Refactor
Integrate
NAnt
CruiseControl.NET
4
Scenario
  • The Beer Buying Problem
  • Story 1 Whos Round Is It Anyway?
  • Story 2 Buying A Beer (mmm.beer)

5
NUnit
  • Open source xUnit framework
  • NUnit 1 is a direct port of JUnit
  • NUnit 2 is a complete rewrite tailored for .NET
  • For C, VB.NET, C, JScript, J
  • Tests identified by attributes
  • Dynamic test loading no more testsuites!
  • Introduction of the yellow bar
  • Negative testing
  • Text, XML or GUI runner

6
NUnit Coding Example
  • Story 1 Whose Round Is It Anyway?
  • I want to select whose turn it is to buy so that
    no one has to pay more than anyone else
  • Person with smallest tab buys the round

7
NMock
  • Open source Mock Object library
  • C, VB.NET, C, JScript, J

8
Mock Object Approaches
  • Hand rolled mock objects
  • Very flexible and can be tailored to each
    scenario.
  • Time consuming to write and maintain.
  • Code generation
  • Active vs. Passive
  • Dynamic
  • Convenient
  • Easy to manage
  • Not type-safe

9
NMock Usage
  • Three stage testing
  • Setup the fixture
  • Execute the code under test
  • Verify results
  • With mocks we setup our assertions before the
    code under test is executed.

10
NMock Coding Example
  • Story 2 Buying A Beer (mmmbeer)
  • I want to buy a beer so that I can drink it
  • However, I can only buy a beer if I can afford it
    and if I havent drunk more than my limit.

11
NAnt
  • Open source build tool
  • Based on Ant (Java/Apache build tool)
  • Tasks facilitating build process
  • eg. copy, csc, nunit, zip, mail, delete, ndoc
  • Dependency checking
  • Supports incremental builds
  • Much more powerful than VS.Net
  • Simpler than Make
  • Easy to extend

12
CruiseControl.NET
  • Open source continuous integration server
  • Supports VSS, CVS, PVCS Perforce
  • .NET tools and tech NAnt, NUnit1, NUnit2,
    NUnitASP, ASP.NET

13
CruiseControl.NET
Build Tool
NAnt
NUnit
CC.NET Web App
14
Fin
  • Resources
  • http//www.nunit.org/
  • http//nmock.truemesh.com/
  • http//nant.sourceforge.net/
  • http//ccnet.opensource.thoughtworks.net/
  • http//www.mockobjects.com/
  • http//dotnetmock.sourceforge.net/
Write a Comment
User Comments (0)
About PowerShow.com