你知道有什么会让你义无反顾去做,即使工作本身并没什么意思吗?你知道当所有的测试都失败,有人不停地问你到底哪出错了的时候,什么能让你内心仍然很坚强吗? 好吧,我不知道。至少没有意识到。 但咨询师这个角色,教会了我们关于人的很多事情:他们怎样和团队成员交互,以及如何做决定并实现它们。
I paid attention to myself and to what made me happy even when the days were not that bright. This helped me come up with a list of principles. So whenever something doesn’t feel right, I ask myself how hard am I trying to apply these principles to my day. They've helped me immensely, so try them yourself and let me know how they’ve worked for you!
Principle # 0 | Be open-minded
Stuck with a legacy application? Even the worst technology has had its time.
It’s hard to agree with everything that goes on in legacy applications. But people go to work to do their best and that’s what we need to keep in mind. They choose a technique, tool, platform, language or methodology with their best intentions. Before abandoning a technology, understand the context of past choices and see if it can used in a better way.
Principle # 1 | Mind the future
Prepare for the future. Tests are the documentation that your system will keep forever.
Learn how to write tests. Learn how to read them as well. Share that knowledge and teach others how to read and write tests. Review the documentation and delete tests which are no longer useful. Change tests when it’s necessary - they aren’t set in stone.
Principle # 2 | Think big
Design your tests for something bigger than just a user acceptance criteria.
When designing a test, understand the user journeys and build long living tests, not short user-story focused scripts. When facing a test, ask yourself a few questions: “What will this test tell me five months from now?” “What’s the appropriate level for my test? Is it a unit, a service or a UI?”