Tests fail after cloning
See original GitHub issueIssue Description
Trying to get this project setup and running locally. I can run via remote-deployment
but trying to run tests will fail:
➜ code-corps-ember git:(master) ember test
DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars`
at Function.Addon.lookup (/Users/corey/Development/code-corps-ember/node_modules/ember-cli/lib/models/addon.js:896:27)
⠋ Buildingember-cli-sentry will not be loaded from bower installation
(node:65652) Warning: Possible EventEmitter memory leak detected. 11 exit listeners added. Use emitter.setMaxListeners() to increase limit
Built project successfully. Stored in "/Users/corey/Development/code-corps-ember/tmp/core_object-tests_dist-SQBp6pen.tmp".
not ok 1 PhantomJS 2.1 - Global error: SyntaxError: Functions cannot be declared in a nested block in strict mode at http://localhost:7357/assets/vendor-b0cb29b3bafe8d02a4741ea7c87e8017.js, line 58513
---
Log: |
{ type: 'error',
text: 'SyntaxError: Functions cannot be declared in a nested block in strict mode at http://localhost:7357/assets/vendor-b0cb29b3bafe8d02a4741ea7c87e8017.js, line 58513\n' }
...
not ok 2 PhantomJS 2.1 - Global error: Error: Could not find module ember-metal/core required by: ember-testing/index at http://localhost:7357/assets/test-support-fb63411330dc1fc96c77e45154906120.js, line 62
---
Log: |
{ type: 'error',
text: 'Error: Could not find module ember-metal/core required by: ember-testing/index at http://localhost:7357/assets/test-support-fb63411330dc1fc96c77e45154906120.js, line 62\n' }
...
not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/code-corps-ember-eee1c17ae20dae8ac6475699c2355ec2.js, line 9
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/code-corps-ember-eee1c17ae20dae8ac6475699c2355ec2.js, line 9\n' }
...
not ok 4 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/tests-6715337fcee49d587ece7c23efe79e81.js, line 1
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/tests-6715337fcee49d587ece7c23efe79e81.js, line 1\n' }
...
not ok 5 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/test-loader-349ab1ab734112d855d75a327e14b006.js, line 3
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/test-loader-349ab1ab734112d855d75a327e14b006.js, line 3\n' }
...
not ok 6 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: EmberENV at http://localhost:7357/9422/tests/index.html?hidepassed, line 1062
---
Log: |
{ type: 'error',
text: 'ReferenceError: Can\'t find variable: EmberENV at http://localhost:7357/9422/tests/index.html?hidepassed, line 1062\n' }
...
Here are the versions of the dependencies I’m working with:
➜ code-corps-ember git:(master) node -v
v6.3.0
➜ code-corps-ember git:(master) bower -v
1.7.9
➜ code-corps-ember git:(master) ember -v
DEPRECATION: Overriding init without calling this._super is deprecated. Please call `this._super.init && this._super.init.apply(this, arguments);` addon: `ember-cli-htmlbars`
at Function.Addon.lookup (/Users/corey/Development/code-corps-ember/node_modules/ember-cli/lib/models/addon.js:896:27)
ember-cli: 2.6.2
node: 6.3.0
os: darwin x64
➜ code-corps-ember git:(master) phantomjs -v
2.1.1
I’ve installed node/phantomjs through Homebrew if that makes a difference. Thanks for any help
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (8 by maintainers)
Top Results From Across the Web
Unable to run C# unit tests after cloning repository
I am trying to run unit tests in a C# project that I have been working on, I have it in a repository...
Read more >Tests fail on cloned repository, even after running "npm install"
I cloned the repository with git, and then ran npm install in the asynquence directory before running the npm test that produced the...
Read more >Test steps are not seen after cloning a Test with test steps
Go to Issues under JIRA Administration-> Field Configurations -> Click "unhide" field “Linked Issue”. After that please re-index JIRA and Zephyr for JIRA ......
Read more >Why test clones mess with your test quality - And how to avoid ...
Cloning causes considerable costs as the effectiveness of the test suite decreases and the effort for maintenance rockets. In this post I take...
Read more >Cloning a test doesn't clone the steps - Atlassian Community
Hi, My team is having issues when they're cloning test tickets. The clone works okay but the test steps are not taken into...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yeah, this seems to be it: https://github.com/ariya/phantomjs/issues/14173. Downgrading their globally installed phantomJS solved it. So if you have
phantomjs
installed via homebrew, you can do:and try running
ember test
again.Yes, agreed on avoiding
sudo
withnpm
. It causes all sorts of nastiness.Out of curiosity, do you use
nvm
?