Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit 44885d7e
authored
Nov 28, 2013
by
Ben Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Coverage and Coveralls.io
1 parent
ad2661d0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletions
.gitignore
Makefile
package.json
.gitignore
View file @
44885d7
...
...
@@ -7,3 +7,4 @@ npm-debug.log
*~
test/binary/tmp/*
test/tmp/*
coverage-mysql
Makefile
View file @
44885d7
...
...
@@ -18,6 +18,10 @@ test:
make teaser
&&
./node_modules/mocha/bin/mocha --check-leaks --colors -t 10000 --reporter
$(REPORTER)
$(TESTS)
;
\
fi
cover
:
rm -rf coverage
\
make teaser
&&
./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -- -u exports --report lcovonly -- -R spec --
$(TESTS)
;
\
mv coverage coverage-
$(DIALECT)
\
mariadb
:
@
DIALECT
=
mariadb make
test
...
...
@@ -32,6 +36,27 @@ postgres-native:
binary
:
@
./test/binary/sequelize.test.bats
mariadb-cover
:
@
DIALECT
=
mariadb make cover
sqlite-cover
:
@
DIALECT
=
sqlite make cover
mysql-cover
:
@
DIALECT
=
mysql make cover
postgres-cover
:
@
DIALECT
=
postgres make cover
postgres-native-cover
:
@
DIALECT
=
postgres-native make cover
binary-cover
:
@
./test/binary/sequelize.test.bats
merge-coverage
:
rm -rf coverage
mkdir coverage
./node_modules/.bin/lcov-result-merger
'coverage-*/lcov.info'
'coverage/lcov.info'
coveralls-send
:
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
&&
rm -rf ./coverage
# test aliases
pgsql
:
postgres
...
...
@@ -41,4 +66,7 @@ postgresn: postgres-native
all
:
sqlite mysql postgres postgres-native mariadb
all-cover
:
sqlite-cover mysql-cover postgres-cover postgres-native-cover mariadb-cover merge-coverage
coveralls
:
sqlite-cover mysql-cover postgres-cover postgres-native-cover mariadb-cover merge-coverage coveralls-send
.PHONY
:
sqlite mysql postgres pgsql postgres-native postgresn all test
package.json
View file @
44885d7
...
...
@@ -58,7 +58,10 @@
"mocha"
:
"~1.13.0"
,
"chai-datetime"
:
"~1.1.1"
,
"sinon"
:
"~1.7.3"
,
"mariasql"
:
"git://github.com/sequelize/node-mariasql.git"
"mariasql"
:
"git://github.com/sequelize/node-mariasql.git"
,
"lcov-result-merger"
:
"0.0.2"
,
"istanbul"
:
"~0.1.45"
,
"coveralls"
:
"~2.5.0"
},
"keywords"
:
[
"mysql"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment