Approval Tests @ MiniIAD
Upcoming SlideShare
Loading in...5
×
 

Approval Tests @ MiniIAD

on

  • 99 views

 

Statistics

Views

Total Views
99
Slideshare-icon Views on SlideShare
80
Embed Views
19

Actions

Likes
2
Downloads
4
Comments
0

5 Embeds 19

http://agileday.it 8
http://www.agileday.it 6
http://www.slideee.com 2
http://127.0.0.1 2
http://miniiadgenova.hostei.com 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Approval Tests @ MiniIAD Approval Tests @ MiniIAD Presentation Transcript

    • Approval Tests A picture’s worth a1000 tests
    • Test Structure public void ScenarioUnderTest() { // Arrange // Act // Assert }
    • The Classic Way public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Assert.Equal("expected", actual); }
    • The Approvals Way public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Assert.Equal("", actual); }
    • Approval Tests Libraries public void ScenarioUnderTest() { var foo = new Foo(); var actual = foo.Do(); Approvals.Verify(actual); }
    • 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.
    • Unleash the power Fight with Legacy Code
    • Golden Master
    • Random Thoughts Plus Tips & Tricks
    • Commit Approval Files
    • Intermediate Steps
    • Both High & Low Level Tests
    • Code Quality Feedback
    • • Approval Tests Library • Author: Llewellyn Falco • Twitter: @LlewellynFalco / #ApprovalTests • Doc: http://approvaltests.sourceforge.net/ • Repository: https://github.com/approvals Resources
    • Matteo Baglini Freelance Software Developer & Tecnical Coach Coders TUG & DotNetToscana Co- Founder @matteobaglini matteo.baglini@gmail.com
    • Thanks!