Menu

1 / 2

How We Reached 99% Line Coverage in a React Native App

HackerNoon·John Adib·about 10 hours ago
#3W5jvCWb
#hackernoon#technology#october#test#coverage
Reading 0:00
15s threshold

In October, the mobile app's CI report showed 99.26% line coverage. The number was gratifying, but it was a poor place to start the story. When I joined the consumer engineering team in April, the app had 113 unit-test files and 14 Maestro YAML files. The device flows had existed for years, yet they were not running in CI. A feature could be finished while the work of trusting it still sat ahead of us.

My remit as engineering manager covered mobile, backend and web work. Mobile verification was a particular bottleneck because a change could bring a nearby screen back into scope. People repeated checks near release, often without leaving an executable record for the next change. I wanted the checks to arrive with the implementation, where a developer and reviewer could see what had been exercised.

There is no April coverage percentage in our records. I can't turn 113 test files into an imaginary baseline. The six-month comparison is about the test inventory and the way those tests entered development.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.