NativeScript / NativeScript/nativescript-cli

tns test <platform> include coverage?

Open
#2,772 23 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature reproducible unit testing
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

From @NickIliev on June 20, 2016 11:31

From @NickIliev on June 20, 2016 10:56

From @georgeedwards on June 17, 2016 12:46

Feature Request:

Can the tns test <platform> command include coverage reporting as part of it's output? Karma-Coverage seems to be quite a nice way of doing this. To add support for Typescript, adding in remap-istanbul looks to be the most straight forward solution.

Copied from original issue: NativeScript/NativeScript#2333

Copied from original issue: NativeScript/nativescript-cli#1865

Copied from original issue: NativeScript/nativescript-unit-test-runner#12

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the tns test <platform> command entry point and trace how its test output is assembled. Review the proposed Karma-Coverage and remap-istanbul integrations, then verify that the command reports coverage for the supported JavaScript and TypeScript tests. Done means coverage reporting is included in the command output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
cli, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.