Skip to content

e2e and unit testing using jest and pupeteer for indexes function

Closes #89 (closed)

Checklist:

  • Add jest unit testing for the metrics calculation functions in profile.js which are to test case passes for L-index and AR-index. It supports code coverage out of the box and is a very useful metric for all CI-based delivery pipelines and the overall test effectiveness of a project.

The following feature from issue #89 (closed) has been achieved:

  • done unit testing individually using jest for new metrics calculation functions of profile.js
  • Jest being a JavaScript testing framework is designed to ensure the correctness of any JavaScript code-base and thus it allows you to write tests with an approachable, familiar, and feature-rich API that gives results quickly thatswhy all tests have been passed and executed.
  • Jest is well-documented, requires little configuration, and can be extended to match requirements. Therefore it also provides detailed coverage of all the passed and failed tests that have been shown in this MR by running the npm test.

Merge request reports