2013-05-02 7 views
23

के साथ कर्म को एकीकृत करने के लिए मैं टीमसिटी में कर्म के माध्यम से परीक्षण चलाने में सक्षम हूं क्योंकि आप कमांड लाइन के माध्यम से सुलभ कुछ भी चला सकते हैं। लेकिन, टीमसिटी केवल कुल पास/असफल रिपोर्ट करता है - किसी भी असफल परीक्षण के विवरण की रिपोर्ट नहीं करता है। अगर यह विफल हो जाता है, तो मुझे बस "कोड 1 से बाहर निकलने की प्रक्रिया" मिलती है।टीमसिटी

कर्म होमपेज का कहना है कि एक टीमसिटी एकीकरण है, लेकिन teamcity link कहता है "अभी तक उपलब्ध नहीं है"।

npm install package के साथ एक जीआईटी प्रोजेक्ट प्रतीत होता है। लेकिन, एनपीएम इंस्टॉलेशन उन संदेशों के साथ असफल रहा जो मेरे लिए बहुत मायने नहीं रखते हैं।

> npm http GET https://registry.npmjs.org/karma-teamcity-reporter npm 
> http 304 https://registry.npmjs.org/karma-teamcity-reporter npm http 
> GET https://registry.npmjs.org/karma npm http 304 
> https://registry.npmjs.org/karma npm WARN `git config --get 
> remote.origin.url` returned wrong result 
> (git://github.com/vojtajina/node-di.git) undefined npm WARN `git 
> config --get remote.origin.url` returned wrong result 
> (git://github.com/vojtajina/node-di.git) undefined npm http GET 
> https://registry.npmjs.org/chokidar npm http GET 
> https://registry.npmjs.org/socket.io npm http GET 
> https://registry.npmjs.org/http-proxy npm http GET 
> https://registry.npmjs.org/glob npm http GET 
> https://registry.npmjs.org/optimist npm http GET 
> https://registry.npmjs.org/coffee-script npm http GET 
> https://registry.npmjs.org/colors/0.6.0-1 npm http GET 
> https://registry.npmjs.org/minimatch npm http GET 
> https://registry.npmjs.org/pause/0.0.1 npm http GET 
> https://registry.npmjs.org/mime npm ERR! git clone 
> git://github.com/vojtajina/node-di.git undefined npm ERR! git clone 
> git://github.com/vojtajina/node-di.git undefined npm http GET 
> https://registry.npmjs.org/q npm http GET 
> https://registry.npmjs.org/lodash npm http GET 
> https://registry.npmjs.org/log4js npm http GET 
> https://registry.npmjs.org/rimraf npm ERR! Error: spawn ENOENT npm 
> ERR!  at errnoException (child_process.js:975:11) npm ERR!  at 
> Process.ChildProcess._handle.onexit (child_process.js:766:34) npm ERR! 
> If you need help, you may report this log at: npm ERR!  
> <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm 
> ERR!  <[email protected]> 
> 
> npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program 
> Files\\nodejs\\\\node.exe" "C:\\Program 
> Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
> "karma-teamcity-reporter" npm ERR! cwd C:\Users\steve npm ERR! node -v 
> v0.10.5 npm ERR! npm -v 1.2.18 npm ERR! syscall spawn npm ERR! code 
> ENOENT npm ERR! errno ENOENT npm http 304 
> https://registry.npmjs.org/chokidar npm http 304 
> https://registry.npmjs.org/optimist npm http 304 
> https://registry.npmjs.org/socket.io npm http 304 
> https://registry.npmjs.org/glob npm http 304 
> https://registry.npmjs.org/http-proxy npm http 304 
> https://registry.npmjs.org/coffee-script npm http 304 
> https://registry.npmjs.org/colors/0.6.0-1 npm http 304 
> https://registry.npmjs.org/minimatch npm http 304 
> https://registry.npmjs.org/mime npm http 304 
> https://registry.npmjs.org/pause/0.0.1 npm http 304 
> https://registry.npmjs.org/q npm http 304 
> https://registry.npmjs.org/lodash npm http 304 
> https://registry.npmjs.org/log4js npm http 304 
> https://registry.npmjs.org/rimraf npm ERR! npm ERR! Additional 
> logging details can be found in: npm ERR!  
> C:\Users\steve\npm-debug.log npm ERR! not ok code 0 

मैं एनपीएम के लिए नया हूं। तो शायद मैं एनपीएम के साथ कुछ गलत कर रहा हूँ। लेकिन, अगर एनपीएम इंस्टॉल काम करता है, तो मैं क्या करूँ? क्या मुझे अगले टीमसिटी कर्म को विशेष टीमसिटी लॉग संदेश शामिल करने की उम्मीद करनी चाहिए?

कोई भी जानता है कि टीम को टीम में पूरी तरह एकीकृत कैसे किया जाए?

उत्तर

23

स्थिर कर्म का उपयोग करें, जिसमें टीमसिटी रिपोर्टर शामिल है।

npm install -g karma 

और फिर, टीमसिटी रिपोर्टर का उपयोग करें, यह stdout पर टीमसिटी आउटपुट उत्पन्न करेगा।

karma start --reporters teamcity --single-run 
+0

सुपर! मैंने पहले से ही कर्म स्थापित किया था। मुझे बस इतना करना था कि टीमसिटी कॉन्फ़िगरेशन में कमांड लाइन अपडेट करें। धन्यवाद!! – steve

+0

@Vojta: जब मैं इस शहर को फ़ैंटॉमजेएस के साथ टीम शहर पर चलाता हूं तो ब्राउज़र कभी पूरा नहीं होता है। क्या आप जानते हैं कि इस मुद्दे का क्या कारण है? – RBZ

+0

संभावित रूप से [यह समस्या] (https://github.com/karma-runner/karma-teamcity-reporter/issues/5) - लिखने के लिए टीमसिटी के लिए लिखने के लिए सिंक्रोनस होना आवश्यक है। – Mendhak