Closed JeffIDavies closed 3 years ago
You can customize the engine in your chutzpah.json file: https://github.com/mmanela/chutzpah/wiki/Browser-Engines
Hi Matthew
Thanks for that. I had found the page before, but it wasn’t clear that it was for the chutzpah.json file.
I have run my tests from the command line using Chrome and JSDom and they work fine. They also work fine on our website. However, they fail using Phantom.
I am experiencing a similar problem to one of your other users in that Visual Studio is not finding all my tests. The ones that work with Phantom are fine, but the other tests appeared sporadically and now that I have changed the engine, they don’t appear at all.
It seems to me that the tests are parsed before they are displayed. It seems that the parsing is failing silently and so the tests are not detected. I wonder if the tests are being parsed by Phantom and failing which explains why they are not appearing in Visual Studio.
I have downloaded your code from GitHub and will have a go at debugging the problem when I find some time.
I have had trouble finding in code the messages appearing in the Output Window. I guess they are stored away in a Resource File somewhere.
If you can give me any more guidance in tracking down the problem, I would appreciate it. If I find a the problem, I am happy to post it back.
Thanks
Jeff Davies
From: Matthew Manela notifications@github.com Sent: Tuesday, 25 August 2020 5:09 PM To: mmanela/chutzpah chutzpah@noreply.github.com Cc: Jeff Davies jeff@smartadata.com; Author author@noreply.github.com Subject: Re: [mmanela/chutzpah] Using a different engine with Chutzpah Test Adapter for the Test Explorer (#788)
You can customize the engine in your chutzpah.json file: https://github.com/mmanela/chutzpah/wiki/Browser-Engines
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mmanela/chutzpah/issues/788#issuecomment-679662843, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAUEATDKJGVSPY46YWJA5STSCNBQRANCNFSM4QKFVS6A.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is there any way to change the engine for the Test Adapter? I am at present caught between a rock and a hard place. My unit tests run fine using IE in debug mode and fine in command mode using chutzpah.console.exe and the jsDom engine . Unfortunately it fails when using 'run test' in Visual Studio and using phantomjs in command mode. The script also works fine with a web page using Chrome browser. Clearly a compatibility quirk. I either need to somehow divine what is causing the problem that phantomjs is complaining about (it is an undefined object) or switch to a n engine that works. Cheers Jeff Davies