+ All Categories
Home > Software > Automated testing for real

Automated testing for real

Date post: 23-Feb-2017
Category:
Upload: markko-paas
View: 37 times
Download: 0 times
Share this document with a friend
23
Automated testing Markko Paas [email protected]
Transcript
Page 1: Automated testing for real

Automated testingMarkko Paas

[email protected]

Page 2: Automated testing for real

AngularJS test automation toolkit

Dependency InjectionModularity

KarmaPhantomJS

Jasmine / MochangMock

Protractor

Page 3: Automated testing for real

We know it is good, but:

We need the features out now. It is business critical.

It takes high coverage to get any benefits.

Our codebase is a total spaghetti. We’ll start with testing after the rewrite.

Page 4: Automated testing for real

The development speed

Where is the hidden waste?

Page 5: Automated testing for real
Page 6: Automated testing for real

✓ No skipping execution

✓ Allows testers to focus on usability

✓ Design documentation

Page 7: Automated testing for real

But the BE is not ready yet…

… no worries, lets mock it

…hold on, lets add the validation

Page 8: Automated testing for real

✓ Independence

Page 9: Automated testing for real

New members in team

Page 10: Automated testing for real

✓ Quick productivity

✓ Usable documentation

Page 11: Automated testing for real

Refactor or not to refactor?

Page 12: Automated testing for real

✓ Enables refactoring

Page 13: Automated testing for real

Make it flexible or make it simple?

Page 14: Automated testing for real

✓ No overengineering

✓ Ability to respond

Page 15: Automated testing for real

Version of platform?

Versions of libraries?

Page 16: Automated testing for real

✓ Community support

✓ Documentation

✓ Useful features

Page 17: Automated testing for real

At the time of writing - it kind of makes sense

After 2 months - why did I write it like that?

After 6 months - who wrote that?

Is your code readable?

Page 18: Automated testing for real

✓ Modular design

✓ Explicit purpose

✓ Documented intention

Page 19: Automated testing for real

Here is our hidden waste:

Non-readable code

Skipping execution

QA team too busy with checking spec

New team members’ productivity

Skipping refactoring & dependency upgrades

Overengineering

Page 20: Automated testing for real

Success?

Fail?

Doubts?

Questions?

[email protected]

Page 21: Automated testing for real
Page 22: Automated testing for real

How to implement?

Unit tests – for documentation

Component tests – for refactoring

End-to-end tests – for stability

Code review – for verifying readability

Page 23: Automated testing for real

Assumptions:

Code is readable

Change impact is controlled

What does the speed depend on?


Recommended