ä»ã¾ã§mochaã§ã®ãã¹ããMakefileã«æ¸ãã¦å®è¡ãã¦ããã®ã§ããã npmããå®è¡ã§ããã¨ããã®ãç¥ã£ãã®ã§ããã試ãã¦ã¿ãã¡ã¢ã§ãã ç°å¢ï¼MacOS 10.7.3 / nodebrew 0.5.0 / node.js 0.6.12 / npm 1.1.9 Makefileæ代 .PHONY: test test: ./node_modules/.bin/mocha \ --colors \ --reporter spec \ --ui tddãªãã¦æ¸ãã¦ã $ make test ã¨ãããµãã«å®è¡ãã¦ã¾ããã Makeã¯å¥½ãã§ããããããããªã¨ããã§ä½¿ã£ã¦ããã§ãã npmã§ãã§ãããªãä»ã®ãã®ã«ä¾åããªãæ¹ãããããªã¼ã¨ã npmæ代 package.jsonã« { ï¼ç¥ï¼ "scripts": { "test": "./node_modules/.bin/mocha" }
{{#tags}}- {{label}}
{{/tags}}