8. Step #1 - Analysis
• Took two days to fix 40% of tests
• Find what are the main issues – and focus on them
– Not readable
– Using logic inside test
– Testing too much
– Hand rolled mocks
– Scenarios hiding as unit tests
– Highly coupled code
www.devreach.com
9. Step #2 – CI Server
Build Server
What’s new?
Commit
There you go
Source Control
www.devreach.com Build Agents
13. Immediate steps
• MSTest
• Write new test before fixing bug
• Fix existing tests when implementing new features
• Delete obsolete tests
www.devreach.com
14. Change is iterative
• Hard to perform big changes overnight
• Small incremental changes
www.devreach.com
15. Today
• More than 5000 tests
• Good code coverage
• Most features are developed using TDD
• CI server run all tests on commit
• Nightly builds
• Change code without fear
www.devreach.com
25. Be pragmatic
• Every action should have a purpose
• If it doesn’t work – change it!
• Names are not important – just what
you do
• Practices can be adapted for the team
Know where to draw the
line
www.devreach.com
29. The right attitude
• Be positive
• Don’t tell them what to so - suggest
improvements
• Don’t force – convince
• Be ready to change if proven wrong
www.devreach.com