It's great being able to run nodeunit tests within Visual Studio 2013!
It was not so straight forward for me to run existing tests within a nodejs solution.
I encountered the following problems:
Hi Kevin. Great plugin, I have this working fine on my VS2012 Update 4 install in the office using an older version of the node.js tools.
I've just set up my home development environment - VS2013 Update2 plus node.js 1.0 Beta (released yesterday) and I'm not able to install the vsNodeTest plugin.
I'm getting an error/warning that Node.js Tools references must be present before installation can continue.
I've tried this via the extensions and updates option within VS and also a direct download/install.
Same error both times.
Is there a chance the details of the Node.JS Tools reference has changed and needs updating?
Hi I really need to make this plugin work. I have met all the requirements:
* node.js is installed
* Node tools for Visual Studio is installed
* I can see and use your "Blank NodeUnit Test Application" project template
* NodeUnit is downloaded locally in the project's node_modules
* I see the NodeUnitTest.test.js file in the project
But nothing shows up in the Test Explorer even after I build the solution
When I open the project in VS I get the following error in the output window:
------ Discover test started ------
Ignoring the specified duplicate source '[...]\NodeUnitTest1\node_modules\nodeunit\node_modules\tap\coverage-example\test\bar.test.js'.
Ignoring the specified duplicate source '[...]\NodeUnitTest1\node_modules\nodeunit\node_modules\tap\coverage-example\test\baz.test.js'.
Ignoring the specified duplicate source '[...]\NodeUnitTest1\node_modules\nodeunit\node_modules\tap\coverage-example\test\foo.test.js'.
An exception occurred while test discoverer 'NodeUnitTestDiscoverer' was loading tests. Exception: Method not found: 'Microsoft.VisualStudio.TestPlatform.ObjectModel.TraitCollection Microsoft.VisualStudio.TestPlatform.ObjectModel.TestObject.get_Traits()'.
========== Discover test finished: 0 found (0:00:50.6931521) ==========
It turns out Test Explorer Traits were added to Visual Studio 2012 in Upddate 1 and my VS installation didn't have any updates. I updated it with the latest (Update 4) and it's working fine now.
Maybe you should add Update 1 to the requirements just to be sure