vs13 - approval tests: cosa, come, quando, perché? @ cdays
DESCRIPTION
E' una tecnica che, sfruttando uno "snapshot" dell'applicazione, permette da un lato di esprimere facilmente assert complesse e da l'altro di cambiare il metodo di scrittura dei test ritardando la definizione delle assert. In questa sessione, dopo una introduzione, vedremo come queste caratteristiche rendono Approval Tests un potente alleato per la scrittura di test di caratterizzazione per applicazioni legacy.TRANSCRIPT
![Page 1: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/1.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
VS13 – Approval Tests: Cosa, Come, Quando, Perché?
Matteo Baglini (@matteobaglini)
Freelance Software Developer & Tecnical Coach
DotNetToscana & Coders TUG Co-Founder
![Page 2: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/2.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Grazie a
Sponsor
![Page 3: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/3.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Primi passiApproviamo i tests
![Page 4: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/4.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
EcosistemaDisponibile per:
C#, VB.NET, Java, PHP, NodeJS, Python, Ruby, etc.
Supportano i test frameworks/runners esistenti: NUnit, xUnit, Ncrunch, MSTest, etc.
Differenti reporters: Diff: Generic, AraxisMerge, P4Merge, KDiff, VisualStudioDiff,
TortoiseDiff, WinMerge. CI: CruiseControl, TeamCity, Quiet. Misc: FileLauncher, Image, Clipboard.
Approval specifici per Environment/Platform: ASP.NET (WebForm/MVC), WinForms, WPF, Rdlc Reports.
![Page 5: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/5.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Sfruttiamo il potenzialeL’eterna sfida contro il codice legacy
![Page 6: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/6.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
ConclusioniPensieri sparsi e consigli pratici
![Page 7: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/7.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Storicizzare solo i file *.approved.*
![Page 8: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/8.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Fissare i passi intermedi
![Page 9: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/9.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Utile a tutti i «livelli»
![Page 10: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/10.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Feedback differente in base all’uso
![Page 11: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/11.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Risorse• Approval Tests Library
Autore: Llewellyn Falco Twitter: @LlewellynFalco / #ApprovalTests Documentazione: http://approvaltests.sourceforge.net/ Repository: https://github.com/approvals/ApprovalTests.Net Nuget: Install-Package ApprovalTests
![Page 12: VS13 - Approval Tests: cosa, come, quando, perché? @ CDays](https://reader036.vdocumenti.com/reader036/viewer/2022062418/554f7585b4c905bb178b5442/html5/thumbnails/12.jpg)
#CDays14 – Milano 25, 26 e 27 Febbraio 2014
Q&ATutto il materiale di questa sessione su
http://www.communitydays.it/
Lascia il feedback su questa sessione,
potrai essere estratto per i nostri premi!
Seguici su
Twitter @CommunityDaysIT
Facebook http://facebook.com/cdaysit
#CDays14