Increase test coverage with each code push - Pooja Shah
551 views · Published 11 May 2018 · 19:14 · Indexed 26 October 2026
Channel: Hasgeek TV · 2018 · Science & Technology
In order to get confidence in release, one feedback report plays vital role: Test Coverage Report Many of us practice test driven development or at-least write the test code after the main code, and pride ourselves in our code coverage. This is relatively easy to do when you begin a new project, but what happens when you take over an existing codebase with little to no tests? Have you encountered questions like: Most of this is legacy code hence not writing tests and gradually the test coverage decreases? This is not my code, why should I write tests or maintain tests for it? Where and how do you start writing tests? This task can be very intimidating and frustrating. Ideal approach: Team halts on going development and covers whole legacy codebase. And then the Real Life happens: Due to the timelines and priorities this doesn’t seem feasible and the amount of refactoring required to cover legacy code is something a new team member would not be interested in doing. How do we find the middle practical ground Well, yes we had the same problem, and everytime we merged new code, we decreased the overall coverage. That’s where we came up with a simple approach which we named “Shield” which shields the newly added code not going into the system without the coverage. In this talk, we will see how shield solves it and the “Legacy code …” songs are stopped. Will also demonstrate how shield works, how can you also create shield for your own context. Pooja is an automation nerd and open source enthusiast. She loves brainstorming and implementing crazy ideas to figure out ways to improve the product quality. Having a blend of dev, qa & devops mindset, she strives to bridge the gaps between all the teams to attain the best results. Driven by curiosity to learn & share new things every day, she pens them, open-source, record tutorials and talk about them at relevant conferences, some of the glimpses can be found on youtube as well. With the help of some of her loving friends, she now has a special colleague named alice, a talking bot she has created to help herself in work & gain her free time to play Pokemon
More from this channel
-
3:19
Flipkart on Scaling PHP in the Cloud
-
35:00
On web standards and accessibility
-
1:05:20
Introduction to HTML5 boilerplate
-
43:45
Bits, bytes and blobs -Mrinal Wadhwa
-
52:30
A primer on ECMAScript 5 -Rajasekharan Vengalil
-
50:11
Zero to App with jQuery Mobile -Anirudh Sanjeev
-
34:26
JavaScript Gone Wild -Akash Mahajan
-
39:32
Bulding great mobile web apps: Some things you might want to know -Shwetank Dixit