.NET Test Driven Development

development

Test Driven Development
Books

Lessons Learned in Software Testing by Cem Kaner, James Bach, and Bret Pettichord.
Pragmatic Unit Testing in C# by the Pragmatic Programmers Andy Hunt and Dave Thomas, the preview chapters (one, two) look good.
Managing the Testing Process by Rex Black – highly recommended by John Robbins.
Test Driven Development: A Practical Guide by Dave Astels, we've got this at work and it is very good although the examples are in Java.
Test Driven Development: By Example by Kent Beck. My comment: can we please move away from the stupid money example.
Test-Driven Development in Microsoft .NET by James Newkirk, a developer on the NUnit project. Awesome book. (get all the code from the TDD workspace on GotDotNet)

Software

csUnit - open source testing framework
NUnit - open source testing framework
mbUnit - unit testing similar to NUnit, from a Microsoft employee

.TEST - commercial automated unit testing software
HarnessIt - commercial testing framework
Unite.NET - commercial unit and integration test software
X-Unity - commercial testing framework

NUnitAddin - Visual Studio add-in, currently has command-line interface (I hear Jamie Cansdale is working on a GUI with red/green bars)
NUnitASP - test web sites by interacting programmatically with the controls on the web page. Now supports authentication as well as several other new features! Also see my NUnitAsp Tips and Best Practices.
NUnitForms - allows you to test Windows Forms in a manner similar to NUnitAsp (you get to interact with the form elements programmatically). It even includes a recorder application!
RUnit - runs NUnit test harnesses in ASP.NET.
TestRunner for NUnit - an NUnit add-in for Visual Studio .NET. See blog post.
VSNUnit - an NUnit add-in for Visual Studio .NET. See blog post.

Mock Objects

DotNetMock
EasyMock.NET
MockObjects
NMock
POCMock

Web sites / columns

Applying Patterns to Software Testing - Brian Marick
Bret Pettichord's Publications on testing
Brian Marick's writings on software testing
Cem Kaner's articles on testing
James Bach's articles
ObjectMentor's Test Driven Development articles
TestDriven.com web site, general purpose portal that includes various languages, testing tools, and articles.
Test Driven Development Column Dave Astels
Test Driven Development Yahoo! group
Pages on the c2 wiki:

TestDrivenDevelopment
TestingCategory
UnitTest - check out all the links at bottom
Blogs

Benjamin Mitchell has an excellent XP and Agile category including lots of TDD
Brian Marick's blog is all about testing
James Newkirk, lead developer on NUnit and now Microsoft employee, has an excellent TDD blog.
Jay Kimble has a TDD category
Jens Winter has a TDD category
Jonathan Cogley has a TDD category
Jonathan de Halleux - the creator of mbUnit
Roy Osherove has a Test Driven category
Siva Rama Krishna has a blog devoted to software testing
Steve Eichert has a TDD category
See my Test Driven Development category

Unit Testing articles

Adventures in C#: Using NUnit - Ron Jeffries
Advanced Unit Testing: Parts 1, 2, 3, 4, 5 - Marc Clifton
An Initial Investigation of Test Driven Development in Industry - Laurie Williams and Boby George
Best Practices: Test Driven Development
Charles' Six Rules of Unit Testing - Charles Miller
Contractual Test Driven Development: Combining Test Driven Development and Design By Contract - Dave Chaplin
csUnit Tutorials - a group of related tutorials on csUnit, including one on how to port from NUnit
Developing Automated Tests using NUnit2 with VB.NET - Dave Chaplin
Effective Unit Testing - Tim Burns
Endo-Testing: Unit Testing with Mock Objects - Tim Mackinnon, Steve Freeman, Philip Craig
Debugging .NET with NUnit - Paul Kimmel
Fun with Unit Tests-Testing Abstract Classes - Roy Osherove
Interview: XP Pioneer Stumps for Test-Driven Development - Jon Udell on InfoWorld
Introduction to Test-driven Development with NUnit and the NUnit Add-in - Roy Osherove
An Introduction to Test-Driven Development (TDD) – code examples are in C# and Delphi using csUnit.

Download the PowerPoint (1043K)
Download the source code (90K)
An Introduction to Test-Driven Development (TDD) using Visual Basic.net – code examples in VB.NET using csUnit.
Download the PowerPoint (1046K)
Download the source code for the demonstrations (211K)
NUnitAsp article - Melwyn D'Souza and Sarvesh Damle
NUnit V.2 For People Who Can't Cook - Markus Kalina, not the latest version of NUnit
Perform Code Coverage Analysis with .NET to Ensure Thorough Application Testing - James McCaffrey
Putting Test Driven Development into Practice - Jimmy Nilsson
TDD with NUnit and C# - PowerPoint presentation by Jonathan Cogley
Test Driven Analysis and Design - Jason Gorman
Test Before You Leap Into Development - Jon Udell on InfoWorld
Test-Driven C# : Improve the Design and Flexibility of Your Project with Extreme Programming Techniques - Will Stott and James W. Newkirk
Test Driven Development - ObjectMentor's write-up on TDD
Test Driven Development - Scott Ambler, chap 11 of his Agile Database Techniques book
Test Driven Development and Acceptance Testing - James Grenning
Test-Driven Development, A Conversation with Martin Fowler, Part V - Bill Venners on Artima.com
Test Driven Development and Web Services - Peter Provost, uses NUnit
Test Driven Development in .NET - Peter Provost, uses NUnit
Test Driven Development in Enterprise Integration Projects - Gregor Hohpe and Wendy Istvanick
Test Driven Development using NUnit - Jason Gorman
Test First Guidelines - Sean Shubin
Testing ASP.NET Applications with NUnitASP and NUnit - Justin Gehtland
Testing for Programmers - Brian Marick, very very good!
Unit Testing and Test-First Development - on MSDN
Unit Testing Database Code - Richard Dallaway
Unit Testing in .NET - Charlie Poole, 79 PowerPoint slides
Unit Testing in .NET - Justin Gehtland
When Do You Stop Unit Testing? - Gordon Weakliem
Work Guidelines: Test Driven Development
Working backwards - James Newkirk, Robert C. Martin
Write Unit Tests - Nick Smith in Visual Studio Magazine
Writing Automated Browser Tests using NUnit and IE - Dave Chaplin

Refactoring
Books

Refactoring: Improving the Design of Existing Code by Martin Fowler – excellent
Refactoring Workbook by William Wake – very good
Refactoring to Patterns by Joshua Kerievesky – forthcoming book, see the web site

Software

C# Refactoring Tool – $110 for 1-9 licenses, $99 for 10 or more
C# Refactory – $99 first license, $50 each additional, 30 for $549
dotEasy – currently free
FlyWheel – $449
Resharper – use a username and password of eapuser, pricing not set
Visual Studio – will include refactoring in the Whidbey release, due in 2005

Web Sites

Agile .NET Development – Refactoring - by Jason Gorman, C# tutorial on refactoring
Fowler Refactoring Example - by Dave Veeneman, a C# translation of the 'Starting Point' example in Chapter 1 of Fowler's Refactoring book
Refactoring Home page – a portal on refactoring maintained by Martin Fowler
Refactoring Yahoo! group
Refactoring with Martin Fowler – Artima interview by Bill Venners
The Process of Database Refactoring – by Scott Ambler
Refactoring Refactoring – article by Robert X. Cringely that questions refactoring
Pages on the c2 wiki:

WhatIsRefactoring
RefactorMercilessly
HistoryOfRefactoring
WhyNotEnoughRefactoringHappens

时间: 2024-10-27 11:48:02

.NET Test Driven Development的相关文章

UML Distilled - Development Process

Iterative(迭代) and Waterfall(瀑布) Processes One of the biggest debates about process is that between waterfall and iterative styles. The essential difference between the two is how you break up a project into smaller chunks. If you have a project that

《圣殿祭司的ASP.NET4.0专家技术手册》----1-1 ASP.NET平台的三分天下

1-1 ASP.NET平台的三分天下 圣殿祭司的ASP.NET4.0专家技术手册 如果访问微软www.asp.net网站,会发现ASP.NET技术目前有3位成员:Web Form.MVC和Web Pages,如图1-1所示.它们各有不同的定位与特色,彼此的开发方式也不相同.目前,使用人数与市场占有率最高的仍是Web Form,而MVC近两年有不少技术玩家和项目采用,至于Web Pages,则是另外的Web Matrix开发工具预定的网页开发技术,它走更易于使用的开发路线. 你心里可能有疑问:"为

TDD并不是看上去的那么美

出处:http://coolshell.cn/articles/3649.html 春节前的一篇那些炒作过度的技术和概念中对敏捷和中国ThoughtWorks的微辞引发了很多争议,也惊动了中国ThoughtWorks公司给我发来了邮件想来找我当面聊聊.对于Agile的Fans们,意料之中地也对我进行了很多质疑和批评.我也回复了许多评论.不过,我的那些回复都是关于中国ThoughtWorks咨询师以及其咨询的方法的.我对Agile方法论中的具体内容评价的不是很多,所以,我想不妨讨论一下Agile方

写有价值的单元测试

这是写给开发同学系列文档中的一篇,主要讲单元测试. 写这个系列的原因是发现开发同学,尤其是偏业务的开发同学对于软件开发中的很多实践和理论理解的不够清楚.比如设计文档,代码评审,单元测试,集成测试和自动化测试,持续集成和持续发布这样一些耳熟能详的概念,说起来每个开发同学都听过,但很多人并没有深入考虑过为什么要引入这些实践,实践需要哪些手段,要达到什么目的,要坚持什么原则?所以这些实践落地的过程也是千差万别,效果往往也不甚理想. 通过这一系列文档,我会把我所了解的每个实践的来源.适用范围和价值用最简

PDD(Product

文章描述:PDD(Product-Feature Driven Design)产品特性驱动设计,我们可以将它使用在我们的日常设计工作中,它可以运用在你的大小设计项目中,这是一种行为模式,一种思考角度,或者我们把它作为一种指导方法.它依靠产品的自身特性来驱动设计.它的成效非常明显,缩短了项目的 无可质疑,文章的标题,是来自来开发的FDD模式带给我的启发,所谓FDD即是Feature Driven Development,特性驱动开发,说得明白一点,就是依靠产品自身的功能特性来驱动产品版本的迭代.前

什么是Extreme Programming(极限编程,简称XP)

编程                                                什么是Extreme Programming(极限编程,简称XP)                                                       来源:chinaxp  http://www.xpchina.org     waltson     Extreme Programming(极限编程,简称XP)是由Kent Beck在1996年提出的.Kent Beck在

MetaDiff——一个模式比较框架

比较 MetaDiff-一个模式比较框架 (翻译草稿,待审校)  译者注:这是来自瑞典斯得哥尔摩大学计算机和系统科学系的一篇硕士论文,由Mark Kofman撰文,导师为Erik Perjons.本文的中文译者为山东大学计算机科学与技术学院的本科生周翔.中文译文中省略了原文中的目录部分.  摘要  在软件开发中,开发模式重要性的日益提高产生了许多新的关注和挑战.本论文主要讨论了在模式驱动开发的环境中模式比较的问题.本论文的目的是为了描述一个名为MetaDiff的模式比较框架的需求分析,以及怎样来

“Cucumber行为驱动开发指南”能带给我们什么

介绍 或许你已经了解到了软件开发中一个头疼的事,就是如何产生正确的需求和围绕这些需求如何有效地进行软件开发?但又不知如何着手? 或许你已经了解到了一些相关的理论知识来解决这个难题,如:行为驱动开发(BDD),验收测试驱动开发(ATDD),实例化需求(Specification By Example),但却发现很难消化所有的信息? 或许你已经建立了一套相关的自动化测试,但总觉得在为测试而测试,没有解决实际问题,有点脱钩? 或许你已经开始着手建立自动化测试来做保障,但对那么多的工具无从选择? 也或许

ATDD实战

验收测试驱动开发入门 你是否遇到过这样的场景: 那么本文就是为您而作--以一个具体的例子阐述了如何基于已有 的代码库启用验收测试驱动开发(acceptance-test driven development).这 是应对技术债解决方案的一部分. 这是带有一定缺陷的现实世界的样例,并不像教科书中的样例那样完美.所以 完全是来自于实战.我只会使用Java与Junit,而没有使用其他的第三方测试框架 (这些框架基本上已经被过度使用了). 免责声明:我并不是说这就是正确地方式,关于ATDD有很多其他的"