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 - JSTestDriver tests are randomly failing
Summary: JSTestDriver tests are randomly failing
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2014-07-24 09:05 UTC by Vladimir Riha
Modified: 2014-10-06 13:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (42.76 KB, text/plain)
2014-07-24 09:05 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
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.