Replacing Manual Verification with Gold Master Tests

[article]

the right thing is actually easy.

 

 

Bonus Tip:

IntelliJ IDEA has a great visual comparison tool which shows you the highlighted differences between two multiline Strings when you compare using JUnit's assertEquals() method. While the text JUnit runner-based assertEquals() failure message does summarize the differences succinctly, we found the visual diff offered by IntelliJ to be much easier to read for these Gold Master tests.

User Comments

1 comment
Anonymous's picture
Anonymous

I've found this to be true over and over again. In fact I use gold master testing all the time thanks to the approval tests jar. Check it out...<br><br>www.approvaltests.com

November 16, 2009 - 3:25pm

About the author

Daniel Wellman's picture Daniel Wellman

Daniel Wellman is a technical lead at Cyrus Innovation, a leading agile consultancy based in New York, where he leads development projects and coaches teams on adopting agile software development practices. Daniel has more than ten years of experience building software systems and is an expert in agile methodologies, object-oriented design, and test-driven development. Contact Daniel at dan@danielwellman.com.

AgileConnection is one of the growing communities of the TechWell network.

Featuring fresh, insightful stories, TechWell.com is the place to go for what is happening in software development and delivery.  Join the conversation now!