The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27...

47
The Future is Codeless… Really? Bojana Lund, Ulrik Kruse and Anders Aaberg Nine A/S 1

Transcript of The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27...

Page 1: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

The Future is Codeless… Really?

Bojana Lund, Ulrik Kruse and Anders Aaberg

Nine A/S

1

Page 2: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

STARRING: Bojana Lund, Ulrik Kruse and Anders Aaberg

Page 3: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

3

Whole team approach,

supported by code

reviews, is the ultimate

test tool!

Page 4: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

4

Page 5: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

5

AGENDA

The future is (hopefully) not codeless

The Whole Team Approach

Dealing with developers

Code review

Page 6: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

6

Page 7: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

7

Expensive test

tools, used in

isolation, come

with a price.

Page 8: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

8

Dialogue

increases quality!

Page 9: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

9

Use the same practices

for test code as for

application code!

Page 10: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

10

Placing technical in front

of tester didn’t make it

much cooler.

Page 11: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

11

Real coders

don’t click.

Page 12: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

12

Actively engage developers in

the test code in order to

facilitate dialogue.

Page 13: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

13

Time for

Change!

Page 14: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

14

Beginnings are

difficult.

Page 15: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

15

No overpriced course can

substitute for hands-on

learning.

Page 16: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

16

The Whole Team

Approach

Everyone on the

project team is held equally

responsible for the quality and

success of the project.

Page 17: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

17

What it takes:

Page 18: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

18

Without support from

management, you will not

succeed!

01.

Page 19: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Add test automation to the

Definition of Done.

02.

19

Page 20: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Demand to be part of all

scrum rituals!

03.

20

Page 21: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

21

If you don’t sit together,

you’re not a team!

04.

Page 22: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

If you don’t work together,

you’re not a team!

05.

22

Page 23: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

23

All code together.

06.

Application code

Unit test code

End-to-end test code

Page 24: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

24

Take

ownership!

07.

Page 25: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

25

One board to rule them all!08.

Page 26: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

26

Be courageous!

09.

From the Agile Manifesto (5):

Build projects around motivated

individuals. Give them the

environment and support they need,

and trust them to get the job done.

Page 27: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

27

Page 28: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

28

Writing test cases in Geb/Spock

27

Writing test cases in Geb/Spock

Page 29: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Start small…

29

Start small…

28

Start small…

28

Page 30: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

30

… and move on to bigger things.

Page 31: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

31

It’s just

fun!!!

Page 32: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Dealing with developers

32

Page 33: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

1. Testers, do

your homework!

33

Page 34: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

34

2. Take chances,

ask questions.

Page 35: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

3. Choose your

battles wisely!

35

Page 36: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

36

Page 37: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

37

Page 38: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Bad attitudes turn

code reviews into

battlegrounds.

38

Page 39: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Monologues kill

code review!

39

Page 40: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

40

Show respect!

Page 41: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

41

Investigate instead

of fighting.

Page 42: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

42

Page 43: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

43

SUMMARY

The future is (hopefully) not codeless

The Whole Team Approach

Dealing with developers

Code review

Page 44: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

Jump!

44

Page 45: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

45

2 Unit tests, 0 End-to-end tests

Page 46: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

46

Q A&

Page 47: The Future is Codeless… Really - EuroSTAR Conference · Writing test cases in Geb/Spock 27 Writing test cases in Geb/Spock. Start small ...

47

THANK

YOU

Contact

Bojana: Ulrik: Anders:

https://www.linkedin.com/i

n/bojana-sofronic-lund/

https://www.linkedin.com/i

n/ulrikkruse/

https://www.linkedin.com/i

n/andersaaberg/

[email protected] [email protected] [email protected]