[jbosstools-issues] [JBoss JIRA] (JBDS-3969) Run istanbul coverage with gulp for unit-tests

Jan Richter (JIRA) issues at jboss.org
Wed Aug 10 08:07:00 EDT 2016


    [ https://issues.jboss.org/browse/JBDS-3969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13277261#comment-13277261 ] 

Jan Richter edited comment on JBDS-3969 at 8/10/16 8:06 AM:
------------------------------------------------------------

This issue was solved with the new version of gulp-spawn-mocha in this commit:

https://github.com/redhat-developer-tooling/developer-platform-install/commit/b1e8d543667512ea44846050cf001b4ce1ff3098

Coverage is now an integral part of the unit tests, so all you need to get it is run
{noformat}gulp test{noformat}


was (Author: jrichter1):
This issue was solved with the new version of gulp-spawn-mocha in this commit:

https://github.com/redhat-developer-tooling/developer-platform-install/commit/b1e8d543667512ea44846050cf001b4ce1ff3098

> Run istanbul coverage with gulp for unit-tests
> ----------------------------------------------
>
>                 Key: JBDS-3969
>                 URL: https://issues.jboss.org/browse/JBDS-3969
>             Project: Red Hat JBoss Developer Studio (devstudio)
>          Issue Type: Task
>          Components: platform-installer
>    Affects Versions: 10.1.0.AM2
>            Reporter: Denis Golovin
>            Assignee: Denis Golovin
>             Fix For: 10.1.0.AM3
>
>
> Current coverage implementation us running with:
> {code}gulp create-electron-symlink
> gulp test
> npm run cover{code}
> Last command generates summary on console and report in ./coverage folder.
> Would be good to have it always running during just.
> {code}gulp test{code}
> I had several attempts to get this done with various modules, but result is always %100 coverage with 0 covered files.
> {code}----------|----------|----------|----------|----------|----------------|
> File      |  % Stmts | % Branch |  % Funcs |  % Lines |Uncovered Lines |
> ----------|----------|----------|----------|----------|----------------|
> ----------|----------|----------|----------|----------|----------------|
> All files |      100 |      100 |      100 |      100 |                |
> ----------|----------|----------|----------|----------|----------------|
> =============================== Coverage summary ===============================
> Statements   : 100% ( 0/0 )
> Branches     : 100% ( 0/0 )
> Functions    : 100% ( 0/0 )
> Lines        : 100% ( 0/0 )
> ================================================================================{code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list