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 254031 - Mocha Unit tests - watch for changes fails to rerun tests
Summary: Mocha Unit tests - watch for changes fails to rerun tests
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Testing (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 11:41 UTC by Vladimir Riha
Modified: 2015-08-27 01:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (35.28 KB, text/plain)
2015-07-31 11:41 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2015-07-31 11:41:44 UTC
Created attachment 155081 [details]
IDE log

Please try:
 - create a new sample project Messages Knockout, install all NPM & Bower dependencies
 - go to project properties
  - disable Selenium tests (provider to be none)
  - set JS Testing to Mocha and enable "Watch for changes..."
  - set Unit Tests folder to "browser_tests"
  - set Selenium Folder to None
  - close properties dialog
 - test the project => tests are executed OK
 - modify e.g. homeTest.js and save it
 => it should re-run tests, instead Mocha output contains just "1..0", Test Results window says

"
1..0
No tests executed - perhaps an error occured?

Full output can be verified in Output window.
"

Thank you


Product Version: NetBeans IDE 8.1 Beta (Build 201507302201)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.16.0-30-generic running on amd64; UTF-8; en_US (nb)
Comment 1 Theofanis Oikonomou 2015-08-26 11:15:36 UTC
Changeset: f92d7411797c
Author:    Theofanis Oikonomou <theofanis@netbeans.org>
Date:      2015-08-26 14:14
Message:
Comment 2 Theofanis Oikonomou 2015-08-26 11:17:06 UTC
Silly initialization matter after session has finished. Should be working as expected now. Thanks for catching
Comment 3 Quality Engineering 2015-08-27 01:21:27 UTC
Integrated into 'main-silver', will be available in build *201508270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f92d7411797c
User: Theofanis Oikonomou <theofanis@netbeans.org>
Log: Task #254031 - Mocha Unit tests  - watch for changes fails to rerun tests