Challenge Overview

Challenge Objectives

  • Update the Karma vscode extension to support coverage report


Project Background

Karma is a Javascript test runner, you can use Karma to run your tests by choosing either Jasmine or Mocha as the testing framework. They are an essential part of modern software development because they allow the developer to write tests before the actual code for the feature or defects under development.  The tests are committed to the repo along with the project source files.  These tests are executed by the CI/ CD system to verify that the integrated code works as designed (or at least as far as it is tested). Other developers run these tests while they are coding and before deployment.  If any of these checks fail during development,  work halts and the focus switches to fixing the failed test.  This new approach has lead to the continuous integration of software on a daily or even hourly basis. For this reason, it is imperative that the testing experience is integrated into the developer's process. Microsoft's VS code is a lightweight developer IDE that is free and has a robust ecosystem of extensions. The goal of this challenge is to create a Karma vscode extension with similar functionality as the Karma Webstorm plugin. 
 

Technology Stack

  • vscode extension
  • Karma


Code access

The latest codebase will be provided in the forum. 
 

Individual requirements

This challenge is a followup challenge of the previous challenges: 
http://www.topcoder.com/challenge-details/30069929/?type=develop&noncache=true

http://www.topcoder.com/challenge-details/30070440/?type=develop&noncache=true

And it's responsible for implementing the following items:
  1. There should be a coverage button on the header bar of the test explorer, click to generate the coverage report. 
  2. After the coverage action is completed, a HTML view with the list of test coverage results (i.e. source file names, percentage of test coverage) should be displayed. 
  3. Click the source file in the list, the source file is opened and the covered lines will be decorated with gutter. 
Please try to fix the following issues in existing code if possible
  • The export test results button exports nothing on windows


Important Notes

The functionalities in the previous challenge should not be broken. 
 

Deployment guide and validation document

Please update the existing deployment and verification guide. 
 

What To Submit

  • Updated Source Code
  • Test nodejs code with Karma unit-tests for verification


Final Submission Guidelines

Submission Deliverable
- Updated Source Code
- Detailed Deployment Guide and Verification Guide
- Test nodejs code with Karma unit-tests for verification
 

ELIGIBLE EVENTS:

Topcoder Open 2019

REVIEW STYLE:

Final Review:

Community Review Board

Approval:

User Sign-Off

SHARE:

ID: 30070660