2014-11-30 3 views

답변

4

Tinytest는 패키지 집합을 연속적으로 반응 적으로 실행하도록 설계되었습니다.

연속 통합 시나리오의 경우 meteor-testpackages을 호출하고 테스트가 완료 될 때까지 기다린 다음 SIGTERM 신호를 유성에 보냅니다. spacejam이라는 도구가 있습니다.

$ npm install -g spacejam 
$ spacejam test-packages ./ 

spacejam: spawning meteor 
[[[[[ Tests ]]]]] 

=> Started proxy. 
=> Started MongoDB. 
spacejam: meteor mongodb is ready 
I20141129-21:12:34.361(-8)? test-in-console listening 
=> Started your app. 

=> App running at: http://localhost:4096/ 
spacejam: meteor is ready 
spacejam: spawning phantomjs 
phantomjs: Running tests at http://localhost:4096/ using test-in-console 
S: tinytest - Moment.is : OK 
C: tinytest - Moment.is : OK 
passed/expected/failed/total 2/0/0/2 
##_meteor_magic##state: done 
spacejam: phantomjs exited with code: 0 
spacejam: killing meteor 
spacejam: meteor killed with signal: SIGTERM 
+0

이제 spacejam'은 [도] [출력의 JUnit XML (https://github.com/practicalmeteor/spacejam/issues/19), 그것은 훨씬 더 유용 CI에 대한 것 것'경우! 그런데 –

+0

, 당신의 repo에서이 파일을 넣는 것은 당신이 작은 요구에 무료 circleci.com, 통합 할 수 있습니다 : – Chris

+0

종속 관계 : cache_directories : - ~/.meteor 재정의 : - 유성 || 컬 https://install.meteor.com |/bin/sh - npm install -g spacejam 테스트 : 무시 : - spacejam 테스트 패키지 – Chris

관련 문제