Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

coverage doesn't work for files outside of build/src #132

@trentgrover-wf

Description

@trentgrover-wf

[12:20 PM] Tom Connell: I can't seem to get wGulp karma-coverage to find the source files. Istanbul report is showing up with no files found: 'No data to display' Any advice on this one?
It might be related to computmaxer/karma-jspm#22
[12:58 PM] Tom Connell: Looks like its because I have jspm looking at my src directory instead of build directory.
build/src, I should say
[1:32 PM] Trent Grover: karma should still be serving up src files:
 https://github.com/Workiva/wGulp/blob/master/src/template/karma.conf.js
[1:33 PM] Trent Grover: did you actually run 'gulp cover'?
or were you just looking for coverage output after running gulp test?
[1:35 PM] Trent Grover: looks like there's a hard-coded coverage preprocessor path set at 'build/src':
 https://github.com/Workiva/wGulp/blob/master/src/tasks/karma.js#L93
we'll have to swap that out for the configured path

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions