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 245940

Summary: JSTestDriver tests are randomly failing
Product: javascript Reporter: Vladimir Riha <vriha>
Component: TestingAssignee: Theofanis Oikonomou <theofanis>
Status: NEW ---    
Severity: normal Keywords: RANDOM
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log

Description Vladimir Riha 2014-07-24 09:05:07 UTC
Created attachment 148259 [details]
IDE log

Please try project from [1] on Windows, replace config\jsTestDriver.conf with the file attached here and run tests with JSTestDriver. They are randomly failing with messages like:

 TypeError: Cannot read property 'not' of undefined 

It looks like "not" is a method from Jasmine so it looks like it is loading dependencies somehow badly.


If I run the tests from command line:

   $ java -jar JsTestDriver-1.3.4.b.jar --port 44221

and in 2nd terminal

   $ cd [project root]
   $ java -jar JsTestDriver-1.3.4.b.jar --config config\jsTestDriver.conf --tests all

It works fine :/ I'll try JDK7 in a minute.




[1]https://github.com/ladariha/sampleapp/archive/master.zip

Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb
Comment 1 Vladimir Riha 2014-07-24 09:18:52 UTC
I cannot reproduce it with JDK7, so it could be JDK8 specific


Product Version: NetBeans IDE Dev (Build 201407240001)
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b19
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 2 Vladimir Riha 2014-07-30 12:07:11 UTC
It seems to be random and I can't find a way to reliably reproduce it.