4

Closed

JavaScript tests disappeared in VS 2013

description

Several people on my team installed 3.0.0 today and now we don't see any tests in Visual Studio 2013 Test Explorer. Is there something we're supposed to do to see our tests?

file attachments

Closed Dec 23, 2013 at 7:16 PM by mmanela

comments

MesaMom wrote Dec 13, 2013 at 8:30 PM

Not sure what additional info would be helpful. We installed 3.0.0 and can no longer see our tests. They were there before. We are using jasmine, all tests are in the same dir as jasmine.js. Our chutzpah.json file is pretty simple:
{
"Framework": "jasmine",
"TestFileTimeout": 90000,
"MaxDegreeOfParallelism" : 5
}

mmanela wrote Dec 13, 2013 at 8:32 PM

Could you give me a sample of a test that its not working? A runnable samples attached in a zip file please.

MesaMom wrote Dec 13, 2013 at 9:04 PM

Added a zip file with a solution with the same structure as ours and the tests are not in Test Explorer.

mmanela wrote Dec 14, 2013 at 4:53 AM

I am unable to repro the issue. The tests do load for me. What I do see though is it taking a really long time. The issue here is you have a large timeout combined with Chutzpah incorrectly thinking jasmine.js is a unit test file and attempting to run it. However, this is not different than the previous version of Chutzpah.

mmanela wrote Dec 14, 2013 at 4:55 AM

To help see what is going on for you can you turn on Chutzpah tracing. You can turn this on in the Tools->Options->Chutzpah. It will create a file named chutzpah.log in %temp%.

MesaMom wrote Dec 16, 2013 at 11:05 PM

I've moved jasmine out of the test directory and turned on tracing. Here's the contents from the Chutzpah.log.

Web Publish Package: Entering GetPublishableProjectCfg
Web Publish Package: Creating a new project publish data
Web Publish Package: Advise shell related events
Web Publish Package: Exiting GetPublishableProjectCfg
Web Publish Package: Entering ProjectOpened
Web Publish Package: Exiting ProjectOpened
Informational: ------ Load Playlist started ------
Informational: ========== Load Playlist finished (0:00:00.0010001) ==========
Web Publish Package: Entering GetPublishableProjectCfg
Web Publish Package: Creating a new project publish data
Web Publish Package: Exiting GetPublishableProjectCfg
Web Publish Package: Entering ProjectOpened
Web Publish Package: Exiting ProjectOpened
Web Publish Package: Entering GetPublishableProjectCfg
Web Publish Package: Creating a new project publish data
Web Publish Package: Exiting GetPublishableProjectCfg
Web Publish Package: Entering ProjectOpened
Web Publish Package: Exiting ProjectOpened
devenv.exe Information: 0 : Time:16:02:27.0351799; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:27.1821946; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:27.3452109; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:27.9112675; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:27.9902754; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.0072771; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.0102774; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.0132777; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.0162780; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.0232787; Thread:1; Message:Chutzpah.json file not found
devenv.exe Information: 0 : Time:16:02:28.2903054; Thread:1; Message:Chutzpah.json file not found
Informational: ------ Discover test started ------
Informational: ========== Discover test finished: 391 found (0:00:01.0531053) ==========
Informational: ------ Run test started ------
Warning: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
Warning: System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain. This can happen if the test(s) started a thread but did not stop it. Make sure that all the threads started by the test(s) are stopped before completion.
Informational: ========== Run test finished: 391 run (0:00:17.0257024) ==========

mmanela wrote Dec 19, 2013 at 7:58 PM

I have a repro and I am investigating further. Until I figure it out you can downgrade to the old version: https://skydrive.live.com/?mkt=en-US#cid=D08E5C6BF97C4C7B&id=D08E5C6BF97C4C7B%2117982

mmanela wrote Dec 22, 2013 at 11:56 PM

I found a fix and released it in version 3.0.1. Please upgrade and let me know if it resolves your issues.

MesaMom wrote Dec 23, 2013 at 2:44 PM

The tests are back! Thanks for the quick fix.

Kerry