Your SlideShare is downloading. ×
Approval Tests @ MiniIAD
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Approval Tests @ MiniIAD

122
views

Published on

Published in: Software, Technology, Education

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
122
On Slideshare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
4
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Approval Tests A picture’s worth a1000 tests
  • 2. Test Structure public void ScenarioUnderTest() { // Arrange // Act // Assert }
  • 3. The Classic Way public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Assert.Equal("expected", actual); }
  • 4. The Approvals Way public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Assert.Equal("", actual); }
  • 5. Approval Tests Libraries public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Approvals.Verify(actual); }
  • 6. Approval Tests Libraries Available for many languages: • Java, C#, PHP, NodeJS, Python or Ruby. Support most (may be all) test frameworks/runners: • JUnit, NUnit, xUnit, rSpec, etc. Many useful reporters: • Diff reporters: Generic, AraxisMerge, P4Merge, KDiff, VisualStudioDiff, TortoiseDiff, WinMerge. • CI: CruiseControl, TeamCity, Quiet. • Misc: FileLauncher, Image, Clipboard. Environment/Platform specific approvals: • Web, Desktop, Reports.
  • 7. Unleash the power Fight with Legacy Code
  • 8. Golden Master
  • 9. Random Thoughts Plus Tips & Tricks
  • 10. Commit Approval Files
  • 11. Intermediate Steps
  • 12. Both High & Low Level Tests
  • 13. Code Quality Feedback
  • 14. • Approval Tests Library • Author: Llewellyn Falco • Twitter: @LlewellynFalco / #ApprovalTests • Doc: http://approvaltests.sourceforge.net/ • Repository: https://github.com/approvals Resources
  • 15. Matteo Baglini Freelance Software Developer & Tecnical Coach Coders TUG & DotNetToscana Co- Founder @matteobaglini matteo.baglini@gmail.com
  • 16. Thanks!

×