From the course: Node.js: Testing and Code Quality

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Testing and code quality goals

Testing and code quality goals

- [Instructor] We've been discussing theory and practice of testing and code quality. How does that apply to what you're working on? Let's admit the truth to ourselves. There's no such thing as a perfect codebase. It's okay to say that because software that we're working on is always changing. Improvement is always an option, and I'd like to give you some ways to make it happen. When improving an existing codebase, start off by setting achievable and reasonable goals. Documenting every single function and updating every package in an afternoon, not going to happen. Part of the goals should include metrics. An example goal is 70% code coverage on a particular component. So the project doesn't drag on forever, have a timeline that you can work towards. It can be as easy as "by Friday" or a multi-step process. Do some research into how you'd like to improve based on your needs. This might include tooling or different…

Contents