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

Smarter testing and never waste time again [Workshop]

Embed Size (px)

Citation preview

Smarter testing and never waste time again

Alex Soto@alexsotob

@alexsotob2

Alex Soto

Red Hat Engineer

www.lordofthejars.com

@alexsotob

Who Am I?

@alexsotob3

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

@alexsotob4

Questions

@alexsotob5

Why We Write Tests ?

@alexsotob6

ENIAC

@alexsotob

Quality for your Customers

7

@alexsotob

Testing

8

@alexsotob

Enable changeRefactor code

Testing

8

@alexsotob

Enable changeRefactor code

Validate functionalityThe right thing, and the thing right

Testing

8

@alexsotob

Enable changeRefactor code

Validate functionalityThe right thing, and the thing right

Trust deployments

Testing

8

@alexsotob9

What is Continuous Delivery?

@alexsotob10

Continuous Delivery Pipeline

@alexsotob11

CI/CD Lifecycle from testing perspective

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

@alexsotob11

CI/CD Lifecycle from testing perspective

git pull —reba

se origin mast

er

git checkout -b issue-xxx

[mvn clean test]

@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

@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

@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]

@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

@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

@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

@alexsotob12

How Many Times Commit Tests are run?

@alexsotob12

How Many Times Commit Tests are run?

@alexsotob13

@alexsotob14

http://bit.ly/2k2Xs7w