charlie talk - clover
DESCRIPTION
TED-like presentation on Atlassian's developer tool: Clover.TRANSCRIPT
![Page 1: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/1.jpg)
How to Test Smarter and Fail Faster
An introduction to Clover
Brendan Humphreys
![Page 2: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/2.jpg)
Clover shows developers where their code isn’t
tested
![Page 3: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/3.jpg)
Code CoverageWhat parts of an application were executed during a test run, and which parts weren’t
![Page 4: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/4.jpg)
Clover empowers developers to write better test code,
faster
![Page 5: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/5.jpg)
![Page 6: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/6.jpg)
![Page 7: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/7.jpg)
![Page 8: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/8.jpg)
![Page 9: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/9.jpg)
Clover helps teams prioritize their testing effort
![Page 10: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/10.jpg)
![Page 11: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/11.jpg)
![Page 12: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/12.jpg)
![Page 13: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/13.jpg)
Clover helps teams selectively test
their code
![Page 14: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/14.jpg)
FAILING FASTER
![Page 15: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/15.jpg)
UNIT TESTING: GOOD
![Page 16: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/16.jpg)
LOTS OF TESTS: GOOD
![Page 17: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/17.jpg)
LONG RUNNING TIMES: BAD
![Page 18: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/18.jpg)
IDLE DEVELOPERS: BAD
![Page 19: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/19.jpg)
NO LOCAL TESTING: BAD
![Page 20: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/20.jpg)
OVERLOADED CI: BAD
![Page 21: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/21.jpg)
SMARTER TESTING
![Page 22: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/22.jpg)
SMART #1:ON RUN THE TESTS YOU
NEED
![Page 23: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/23.jpg)
SMART #2:ORDER TESTS TO FAIL
FAST
![Page 24: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/24.jpg)
<junit ...><batchtest fork="true" todir="${test.results.dir}/results"> <clover-optimized-testset snapshotfile="${clv.snapshot}"> <fileset dir="src/tests" includes="${test.includes}" excludes="${test.excludes}"/> </clover-optimized-testset></batchtest></junit>
![Page 25: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/25.jpg)
<profiles> ... <profile> <id>clover</id> <build> <plugins> <plugin> <groupId>com.atlassian.maven.plugins</groupId> <artifactId>maven-clover2-plugin</artifactId> <version>2.4.1</version> <executions> <execution> <goals> <goal>setup</goal> <goal>optimize</goal> <goal>snapshot</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile></profiles>
![Page 26: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/26.jpg)
Avg = 40 minutes Avg = 7 minutes
Normal Optimized
Confluence CI Build
![Page 27: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/27.jpg)
Faster FeedbackNormal Build
Clover Opt Build
Anatoli waits 38 minsfor build failure
Anatoli waits only7 mins
![Page 28: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/28.jpg)
Clearer FeedbackNormal
Clover Opt
Broken Build, three committers
Same broken Build, one committer
![Page 29: Charlie Talk - Clover](https://reader033.vdocument.in/reader033/viewer/2022050805/558a1acdd8b42ab9618b463e/html5/thumbnails/29.jpg)
Test Smarter, Fail Faster With Clover