This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245481 - Usage statistics on JS Test usage
Summary: Usage statistics on JS Test usage
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.0.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-08 13:10 UTC by John Jullion-ceccarelli
Modified: 2014-07-15 08:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2014-07-08 13:10:15 UTC
Add usage tracking to 8.0.1 to show which HTML5 projects use JSTestDriver/Karma/no testing.
Comment 1 Tomas Mysik 2014-07-08 13:18:33 UTC
Yes, this needs to be done.
Comment 2 Tomas Mysik 2014-07-09 12:19:23 UTC
We will log:
- change in configuration (Project Properties dialog),
- the first run of the Test action (of the given IDE session).

This should tell us which JS Testing provider is selected and whether our users test their code at all.

Thanks.
Comment 3 John Jullion-ceccarelli 2014-07-09 14:45:02 UTC
sounds good.
Comment 4 Tomas Mysik 2014-07-10 10:06:41 UTC
Done, new events USG_TEST_RUN_JS and USG_TEST_CONFIG_JS are added. I have updated the usage wiki page [1] as well.

Thanks.
[1] http://wiki.netbeans.org/UsageLoggingSpecification

http://hg.netbeans.org/web-main/rev/0c84b626592c
Comment 5 Quality Engineering 2014-07-11 02:21:34 UTC
Integrated into 'main-silver', will be available in build *201407110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0c84b626592c
User: Tomas Mysik <tmysik@netbeans.org>
Log: #245481 - Usage statistics on JS Test usage
Comment 6 Vladimir Riha 2014-07-14 14:46:25 UTC
It looks like USG_TEST_RUN_JS and USG_TEST_CONFIG_JS are both being logged twice.

I have following setup (for USG_TEST_RUN_JS):
 - clean user/cache dir
 - 1 project in NetBeans - HTML5 project from AngularSeed template with NPM install already called and Karma configured
 - right click on the project and select Test

=> log contains these identical records

<record>
  <date>2014-07-14T16:38:10</date>
  <millis>1405348690385</millis>
  <sequence>101</sequence>
  <logger>org.netbeans.ui.metrics.web.clientproject</logger>
  <level>INFO</level>
  <thread>24</thread>
  <message>USG_TEST_RUN_JS</message>
  <key>USG_TEST_RUN_JS</key>
  <catalog>org.netbeans.modules.web.common.api.Bundle</catalog>
  <param>org.netbeans.modules.web.clientproject</param>
  <param>Karma</param>
</record>
<record>
  <date>2014-07-14T16:38:10</date>
  <millis>1405348690385</millis>
  <sequence>101</sequence>
  <logger>org.netbeans.ui.metrics.web.clientproject</logger>
  <level>INFO</level>
  <thread>24</thread>
  <message>USG_TEST_RUN_JS</message>
  <key>USG_TEST_RUN_JS</key>
  <catalog>org.netbeans.modules.web.common.api.Bundle</catalog>
  <param>org.netbeans.modules.web.clientproject</param>
  <param>Karma</param>
</record>


The same situation is with USG_TEST_CONFIG_JS when I change JS Test provider in project properties.
 

Product Version: NetBeans IDE Dev (Build 201407140001)
Java: 1.8.0_05; Java HotSpot(TM) Client VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-30-generic running on i386; UTF-8; en_US (nb)
Comment 7 Tomas Mysik 2014-07-15 07:02:52 UTC
(In reply to Vladimir Riha from comment #6)
> It looks like USG_TEST_RUN_JS and USG_TEST_CONFIG_JS are both being logged
> twice.

Láďo, could you please check whether also other events are logged twice? Anyway, I will check it using debugger so we are sure.

Thanks.
Comment 8 Tomas Mysik 2014-07-15 07:29:05 UTC
Sorry, it works for me, at home as well in the office.

Product Version: NetBeans IDE Dev (Build 20140715-6b3e5e696bec)
Java: 1.7.0_60; Java HotSpot(TM) 64-Bit Server VM 24.60-b09
Runtime: Java(TM) SE Runtime Environment 1.7.0_60-b19
System: Linux version 3.13.0-30-generic running on amd64; UTF-8; cs_CZ (nb)
Comment 9 Vladimir Riha 2014-07-15 08:52:07 UTC
Thanks, it seems like other events are also logged twice, reported as issue 245681.

Verified