Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'undefined' is not a constructor #11

Open
bkern opened this issue Sep 27, 2012 · 3 comments
Open

TypeError: 'undefined' is not a constructor #11

bkern opened this issue Sep 27, 2012 · 3 comments

Comments

@bkern
Copy link

bkern commented Sep 27, 2012

I have this project configured and working locally on my machine (win7). However, when I push exact code to cloud(ec2) I get this error when it reaches the line in SpecRunner where it is trying to create the console reporter. I was initially working with Phantom 1.6 and I just upgraded to 1.7 but that did not resolve the issue.

TypeError: 'undefined' is not a constructor (evaluating 'new jasmine.ConsoleReporter()')

Do you have any ideas on where to go next? I tried starting phantom with --debug turned on but I didn't get any further output. I ran some of the examples in the phantomjs project so I feel comfortable that should be working.

I tried running phantom with just the run_jasmine_test and no param for spec runner and I appropriately get error mesage about providing url as argument.

I did notice that if I changed the script tag in my test runner to a bad path for the console reporter it didn't seem to matter which I thought was odd. Any ideas as to what might be wrong?

@alcohol
Copy link

alcohol commented Dec 11, 2012

Have the same issue... but this project seems rather dead :(

@bkern
Copy link
Author

bkern commented Dec 11, 2012

I never was able to get this working but I got my overall solution working by removing this project. It is not a requirement to have this to make phantom run some jasmine tests. I went the route of using built in phantom functionality and wrote my own script.

@alcohol
Copy link

alcohol commented Dec 11, 2012

I actually did get it working just now, the solution was quite simple...

https://github.com/alcohol/chromium-header-ext
https://travis-ci.org/alcohol/chromium-header-ext

I simply removed the TrivialReporter reference and no longer load the jasmine-html.js file (which contains trivial/html reporter). I setup a separate html file for the console suite (tests/testsuite-console.html) and use the html reporter only for my local testing in the browser.

Don't pay too much attention to the project itself, it's more of a toy than a serious useful product :trollface:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants