1

Closed

Chutzpah Test Adapter not displaying results

description

Hi,

This issue is being raised in response to the reply I received on Stack Overflow for the following question:

http://stackoverflow.com/questions/15592737/chutzpah-test-adapter-not-displaying-results

I have attached the relevant files, including the installed Visual Studio 2012 Test Adapter extension (I omitted the phantomjs.exe file to keep the zip folder below the allotted attachment limit). As mentioned, it all seems fiine apart from the fact it isn't displaying in the Test Explorer window. I would also add I have tried reinstalling Visual Studio. Any help appreciated.

Regards,

Matthew

file attachments

Closed Dec 3, 2013 at 4:50 AM by mmanela
These issues are old, are fixed or the user has no responded. Please file a new issue if you still have a problem.

comments

mmanela wrote Apr 13, 2013 at 2:40 PM

Thanks for posting this. I opened your repro up in VS and it worked fine for me. Are you able to run the tests using the chutzpah console runner?

matthewblott wrote May 3, 2013 at 11:48 PM

Hi Matt, thanks for looking at this. I've installed the latest version but still can't get this to work. I do also get an error with the console runner. Any tests are executed correctly but an error is thrown. I haven't tried debugging yet as it might be something you recognise. I'm running the same test in the zip file previously uploaded, below is the response written to the console window ...

------ Test started: File: C:\Downloads\chutzpah\chutzpah-test-app\website\maths_tests.js ------
1 passed, 0 failed, 1 total (chutzpah).

Chutzpah Error: Chutzpah.Exceptions.ChutzpahTimeoutException: Timeout occured when running C:\Downloads\chutzpah\chutzpah-test-app\website\maths_tests.js
at Chutzpah.TestRunner.HandleTestProcessExitCode(Int32 exitCode, String inputTestFile)
at Chutzpah.TestRunner.InvokeTestRunner(String headlessBrowserPath, TestOptions options, TestContext testContext, TestRunnerMode testRunnerMode, ITestMethodRunnerCallback callback)
at Chutzpah.TestRunner.<>c__DisplayClass2.<ProcessTestPaths>b__1(PathInfo testFile)
While Running:C:\Downloads\chutzpah\chutzpah-test-app\website\maths_tests.js

========== Total Tests: 0 passed, 0 failed, 0 total ==========

mmanela wrote May 4, 2013 at 1:42 AM

I looked into it again and using the sample you gave I do get the issue. However, it looks like you are missing the require.js file the test references. When I include that file and run
ConsoleRunner\bin\Debug\chutzpah.console.exe maths_tests.js
Then the test runs successfully. I attached the version of require.js I used.

matthewblott wrote May 4, 2013 at 11:13 AM

No joy I'm afraid. I still get an error running for either Visual Studio or just the command line. Incidentally, I noticed the install in the extensions directory was missing the chutzpah.console.exe file - so I'm not sure where it was being called from in visual studio before. I've attached screenshots for both examples - I'm only using the maths_test.js file now, it's about as simple as you can get.
Thanks,
Matt

mmanela wrote May 4, 2013 at 10:34 PM

Does the test work if you run them directly with chutzpah.console.exe from command line? If not I think you may be dealing with this issue: https://code.google.com/p/phantomjs/issues/detail?id=845