So.. I need to train the team on Unit Testing - could use C&C on lesson plan

前端 未结 10 1083
你的背包
你的背包 2021-02-01 09:36

So - management is looking to do a push to move towards doing unit-testing in all the applications moving forward - and eventually get into full TDD/Continuous Integration/Autom

10条回答
  •  无人及你
    2021-02-01 10:20

    Getting people interested in unit testing on someone else's/sample code will not be as effective as having folks "start with the testcase" on some new code they have to write. Cover the basics of starting with a test case and triangulating to a valid result (all the while emphasizing that a failing test is progress).

    That said, my personal experience is that things like this are better done in a pair programming environment. It's extra work for you, but the combination of one-on-one, some ownership and a working example they can reference at the end of it will make adoption much easier.

    Getting a coverage tool running at some point later on can, given the right environment, provide a fun, competitive and gratifying way of marking progress. Making this in any way part of compensation/bonuses is a real bad idea. Done correctly, folks will adopt it because it works.

提交回复
热议问题