Build your own code coverage tool with JavaScript, Node.js and V8 Engine || Erick Wendel

Build your own code coverage tool with JavaScript, Node.js and V8 Engine || Erick Wendel

HomeErick WendelBuild your own code coverage tool with JavaScript, Node.js and V8 Engine || Erick Wendel
Build your own code coverage tool with JavaScript, Node.js and V8 Engine || Erick Wendel
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Get ready, roll up your sleeves and build your own code coverage tool from scratch!

In this video, you'll learn how to use JavaScript, Node.js, and the v8 engine to create a custom code coverage tool that meets your exact needs.

You can even use the native Node.js to identify specific lines that are not covered. Don't miss the chance to learn the intricacies of creating code coverage tools.

Have you ever wondered what goes on behind the scenes of code coverage tools like Jest, C8 and Istanbul?

In this video I give you a rare behind-the-scenes look at how to build your own code coverage tool using JavaScript, Node.js, and the v8 engine.

And the best part? This demo was built using Chat GPT, the language model trained by OpenAI. It was exciting to see how powerful it is not only for creating code, but also for generating ideas.

Ready to get started? Pour yourself a drink and let's go!

SOURCE CODE

▸ https://bit.ly/code-coverage-from-scratch

FOLLOW ME

▸ Linkedin: https://linkedin.com/in/erickwendel
▸ Blog: https://erickwendel.com.br/
▸ Facebook: https://fb.com/page.erickwendel
▸ Medium: https://medium.com/@erickwendel
▸ Twitter: https://twitter.com/erickwendel_
▸ Telegram: https://bit.ly/ErickWendelContentHub

TIMELINE

00:00 – SUBSCRIBE NOW
01:18 – Free and paid content about Node.js and Javascript
01:36 – About video content
02:21 – What is CDP?
02:59 – Accessing the CDP APIs via the Inspector module in node.js
03:04 – How GPT Chat helped me with this video’s project
04:04 – How I researched libraries that use Chrome developer tools for code coverage
04:51 – Version of node.js used in the project
05:02 – Creating the project structure
05:42 – Creating assertions in the calc.mjs file and testing the import in index.js
08:15 – Using the Inspector module to create a test coverage
11:54 – Reviewing test coverage call results
13:14 – Find lines of code that have no code coverage
14:01 – Filtering coverage results
16:07 – Ignore node modules and the coverage file itself in the results
18:39 – Saving the results in a JSON file
19:13 – Search and filter only the results with uncovered rows
20:39 – How chatGPT helped me create the reporting feature
23:17 – Creating the variable that sets the color of the letters in the logs
25:38 – Creating the feature to show uncovered lines by color
29:45 – Analyzing the function result and improving the code
32:36 – Testing other use cases for test coverage: new features and new modules
33:51 – Javascript tooltips and courses
34:15 – Video summary
35:11 – Bloopers
36:34 – Thank you!

#CodeCoverage #JavaScript #Nodejs #V8Engine #CodeTesting #SoftwareDevelopment #WebDevelopment #FrontendDevelopment #BackEndDevelopment #ErickWendel #CodeQuality #CodeAnalysis #CodePerformance #CodeEfficiency #CodeOptimization #CodingTips #ProgrammingTips #TechTips #DeveloperCommunity #WebApps #OpenSource #TechBlog #CodeNewbie #LearnToCode #CodeLikeAPro. #CodeChallenge #CodeMentor #CodeDebugging #CodeReview #CodeRefactoring

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.