Top Banner
Smarter testing and never waste time again Alex Soto @alexsotob
27

Smarter testing and never waste time again [Workshop]

Jan 22, 2018

Download

Software

Alex Soto
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Smarter testing and never waste time again [Workshop]

Smarter testing and never waste time again

Alex Soto@alexsotob

Page 2: Smarter testing and never waste time again [Workshop]

@alexsotob2

Alex Soto

Red Hat Engineer

www.lordofthejars.com

@alexsotob

Who Am I?

Page 3: Smarter testing and never waste time again [Workshop]

@alexsotob3

https://www.manning.com/books/testing-java-microservices

Page 4: Smarter testing and never waste time again [Workshop]

@alexsotob4

Questions

Page 5: Smarter testing and never waste time again [Workshop]

@alexsotob5

Why We Write Tests ?

Page 6: Smarter testing and never waste time again [Workshop]

@alexsotob6

ENIAC

Page 7: Smarter testing and never waste time again [Workshop]

@alexsotob

Quality for your Customers

7

Page 8: Smarter testing and never waste time again [Workshop]

@alexsotob

Testing

8

Page 9: Smarter testing and never waste time again [Workshop]

@alexsotob

Enable changeRefactor code

Testing

8

Page 10: Smarter testing and never waste time again [Workshop]

@alexsotob

Enable changeRefactor code

Validate functionalityThe right thing, and the thing right

Testing

8

Page 11: Smarter testing and never waste time again [Workshop]

@alexsotob

Enable changeRefactor code

Validate functionalityThe right thing, and the thing right

Trust deployments

Testing

8

Page 12: Smarter testing and never waste time again [Workshop]

@alexsotob9

What is Continuous Delivery?

Page 13: Smarter testing and never waste time again [Workshop]

@alexsotob10

Continuous Delivery Pipeline

Page 14: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

Page 15: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

Page 16: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

Page 17: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

Page 18: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

git commit

git checkout master

git pull —rebase origin

git checkout issue-xxx

git rebase master

Page 19: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

git commit

git checkout master

git pull —rebase origin

git checkout issue-xxx

git rebase master

[mvn clean test]

Page 20: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

git commit

git checkout master

git pull —rebase origin

git checkout issue-xxx

git rebase master

[mvn clean test]

git push origin issue-xxx

Page 21: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

git commit

git checkout master

git pull —rebase origin

git checkout issue-xxx

git rebase master

[mvn clean test]

git push origin issue-xxx

pre-commit tests

web hook

Page 22: Smarter testing and never waste time again [Workshop]

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

(code)

mvn clean test

git commit

git checkout master

git pull —rebase origin

git checkout issue-xxx

git rebase master

[mvn clean test]

git push origin issue-xxx

pre-commit tests

commit stage tests

acceptance tests

approval

web hook

Page 23: Smarter testing and never waste time again [Workshop]

@alexsotob12

How Many Times Commit Tests are run?

Page 24: Smarter testing and never waste time again [Workshop]

@alexsotob12

How Many Times Commit Tests are run?

Page 25: Smarter testing and never waste time again [Workshop]

@alexsotob13

Page 26: Smarter testing and never waste time again [Workshop]

@alexsotob14

http://bit.ly/2k2Xs7w