1 Star 0 Fork 4

lgzhang/lightCS

forked from woerwin/lightCS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
woerwin 提交于 2013-12-28 08:30 . lightCS在线客服系统
TESTS = test/*.js
REPORTER = spec
TIMEOUT = 10000
MOCHA_OPTS =
G =
JSCOVERAGE = ./node_modules/jscover/bin/jscover
ifeq ($(OS),Windows_NT)
JSCOVERAGE = ./test/tools/jscoverage.exe
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
JSCOVERAGE = ./jscoverage-0.5.1/jscoverage
endif
ifeq ($(UNAME_S),Darwin)
JSCOVERAGE = ./jscoverage-0.5.1/jscoverage
endif
JSCOVERAGE = ./jscoverage-0.5.1/jscoverage
endif
test:
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) $(MOCHA_OPTS) \
$(TESTS)
test-g:
@NODE_ENV=test ./node_modules/mocha/bin/mocha \
--reporter $(REPORTER) \
--timeout $(TIMEOUT) -g "$(G)" \
$(TESTS)
test-cov: sumeru-cov
@SUMERU_COV=1 $(MAKE) test REPORTER=dot
@SUMERU_COV=1 $(MAKE) test REPORTER=html-cov > coverage.html
@SUMERU_COV=1 $(MAKE) test REPORTER=mocha-lcov-reporter | sed "s/SF:/&sumeru-cov\//g" | COVERALLS_REPO_TOKEN="6ONbo8TZBkarcJTA3TPgdCaWXFHy7fUfY" ./node_modules/coveralls/bin/coveralls.js
@rm -rf sumeru-cov
sumeru-cov:
@rm -rf $@
@$(JSCOVERAGE) sumeru $@ --no-highlight --encoding=UTF-8
.PHONY: test test-g test-cov sumeru-cov
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tfedu/lightCS.git
git@gitee.com:tfedu/lightCS.git
tfedu
lightCS
lightCS
master

搜索帮助