Skip to content

Commit 6633bd0

Browse files
committed
slides
1 parent a0ac8dc commit 6633bd0

File tree

1 file changed

+22
-37
lines changed

1 file changed

+22
-37
lines changed

presentation/slides.md

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,12 @@ Solitary vs Sociable: https://martinfowler.com/bliki/UnitTest.html
491491
-->
492492

493493
---
494-
layout: section
494+
layout: image-content
495495
---
496496

497497
# Tautological Tests
498498

499-
::subtitle::
499+
::image::
500500

501501
![](./images/meme-tautological-lobster.jpg)
502502

@@ -619,19 +619,13 @@ Defect Insertion: Your test must be able to fail by changing the production code
619619
-->
620620

621621
---
622-
layout: default-image
622+
layout: quote-alt
623623
---
624624

625-
# Common Pitfalls
626-
627-
## Make sure your test fails at least once
628-
629-
<div class="full-width text-xxl text-center mt-16">
625+
Make sure your test fails at least once.
630626

631627
Are you testing what you think you are testing?
632628

633-
</div>
634-
635629
::image::
636630

637631
![](./images/circle-sinkhole.jpg)
@@ -643,26 +637,17 @@ Example: Testing a "RecordNotFound" results in an Exception but we don't actuall
643637
-->
644638

645639
---
646-
layout: default
640+
layout: image-content
641+
image: ./images/comic-coverage-cheat.png
647642
---
648643

649644
# What are you testing?
650645

651-
<div class="flex justify-center">
652-
<img src="./images/comic-coverage-cheat.png" class="h-100" />
653-
</div>
654-
655646
---
656-
layout: default-image
647+
layout: quote-alt
657648
---
658649

659-
# Common Pitfalls
660-
661-
<div class="full-width text-xxl text-center mt-24">
662-
663-
Avoid brittle tests
664-
665-
</div>
650+
Avoid brittle tests.
666651

667652
::image::
668653

@@ -713,20 +698,12 @@ layout: section
713698
The UnitTesting Dilemma
714699

715700
---
716-
layout: default
701+
layout: quote-alt
717702
---
718703

719-
# Legacy Code
720-
721-
## The UnitTesting Dilemma
704+
To change the code, we need tests.
722705

723-
<div class="full-width text-xl text-center mt-16">
724-
725-
To change the code, we need tests
726-
727-
To test code, we need to change it
728-
729-
</div>
706+
To test code, we need to change it.
730707

731708
<!--
732709
Seams: Change the behavior of a program without changing the program. Virtual methods & Polymorphism. Inject different implementations of an interface. Preprocessing Seams (ex: ConditionalAttributes, Compiler Directives).
@@ -780,7 +757,7 @@ layout: section
780757
Red -- Green -- Refactor
781758

782759
---
783-
layout: content-image
760+
layout: default-image
784761
---
785762

786763
# Test Driven Development
@@ -824,7 +801,7 @@ Useless Tests: Personal opinion: if you like working TDD, go for it. If you don'
824801
-->
825802

826803
---
827-
layout: content-image
804+
layout: default-image
828805
---
829806

830807
# Breaking the Cycle of Fear
@@ -841,7 +818,7 @@ Write tests until fear is transformed into boredom.
841818
-->
842819

843820
---
844-
layout: default
821+
layout: content-image
845822
---
846823

847824
# Resources
@@ -863,6 +840,14 @@ layout: default
863840

864841
</div>
865842

843+
::image::
844+
845+
<div class="flex flex-col items-center gap-1 h-full justify-center">
846+
<img src="./images/book-art-of-unit-testing.jpg" class="max-h-[30%] w-auto rounded shadow" />
847+
<img src="./images/book-legacy-code.jpg" class="max-h-[30%] w-auto rounded shadow" />
848+
<img src="./images/book-tdd-by-example.jpg" class="max-h-[30%] w-auto rounded shadow" />
849+
</div>
850+
866851
---
867852
layout: quote
868853
---

0 commit comments

Comments
 (0)