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.
Add usage tracking to 8.0.1 to show which HTML5 projects use JSTestDriver/Karma/no testing.
Yes, this needs to be done.
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.
sounds good.
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
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
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)
(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.
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)
Thanks, it seems like other events are also logged twice, reported as issue 245681. Verified