2017-02-10 9 views
1

Wercker가 테스트를 수행하는 동안 계속해서 이러한 오류가 발생합니다.테스트 중에 Wercker/PhantomJS가 Ember 프로젝트를 계속 실패합니다.

not ok 1 PhantomJS 2.1 - Global error: SyntaxError: Unexpected token ')' at http://localhost:7357/assets/vendor.js, line 15740 
--- 
    Log: | 
     { type: 'error', 
      text: 'SyntaxError: Unexpected token \')\' at http://localhost:7357/assets/vendor.js, line 15740\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.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.js, line 62\n' } 
... 
not ok 3 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/frontend.js, line 9 
--- 
    Log: | 
     { type: 'error', 
      text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/frontend.js, line 9\n' } 
... 
not ok 4 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: define at http://localhost:7357/assets/tests.js, line 3 
--- 
    Log: | 
     { type: 'error', 
      text: 'ReferenceError: Can\'t find variable: define at http://localhost:7357/assets/tests.js, line 3\n' } 
... 
not ok 5 PhantomJS 2.1 - Global error: ReferenceError: Can't find variable: EmberENV at http://localhost:7357/5866/tests/index.html?hidepassed, line 44 
--- 
    Log: | 
     { type: 'error', 
      text: 'ReferenceError: Can\'t find variable: EmberENV at http://localhost:7357/5866/tests/index.html?hidepassed, line 44\n' } 
... 

엠버 프로젝트를 사용하여 테스트를 실행하면 테스트가 통과됩니다.

타다 남은 시험

그것은 단지 Wercker에 그리고 그것은 테스트가 실패 PhantomJS의 사용이다

. PhantomJS가 ES6를 지원하지 않는다고 가정합니다.하지만 내 .jshintrc에 나는이 줄을 추가 :

"esversion": 6, 

이 테스트를 통과 할 수있는 방법이 있나요를?


이들은 wercker.yml 내 단계는 다음과 같습니다

steps: 
- script: 
    name: yarn-install 
    code: npm install -g yarn 

- script: 
    name: bower-install 
    code: yarn global add bower 

- script: 
    name: phantomjs-prebuilt-install 
    code: yarn global add phantomjs-prebuilt 

- script: 
    name: ember-cli 
    code: yarn global add ember-cli 

# A step that executes `npm install` command 
- script: 
    name: install-deps 
    code: yarn install 

- script: 
    name: bower-install-deps 
    code: bower install --allow-root 

- script: 
    name: tests 
    code: ember test 

- script: 
    name: ember-build 
    code: ember build 

답변

0

1.9에 phantomjs 버전을 변경 이제에 대한 문제 를 해결하는 것 같다.

- script: 
name: phantomjs-prebuilt-install 
code: yarn global add phantomjs-prebuilt 

에 :

- script: 
name: phantomjs-prebuilt-install 
code: yarn global add [email protected]