Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
ed872ca0
Commit
ed872ca0
authored
Jul 21, 2017
by
cgewecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor coverage maintenance
parent
c3a30e9b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
11 deletions
+25
-11
.gitignore
.gitignore
+4
-2
README.md
README.md
+1
-1
coverage.sh
scripts/coverage.sh
+20
-8
No files found.
.gitignore
View file @
ed872ca0
...
...
@@ -4,4 +4,6 @@ node_modules/
build/
.DS_Store/
/coverage
coverage.json
\ No newline at end of file
coverage.json
allFiredEvents
scTopics
\ No newline at end of file
README.md
View file @
ed872ca0
# Zeppelin Solidity
[

](https://www.npmjs.org/package/zeppelin-solidity)
[

](https://travis-ci.org/OpenZeppelin/zeppelin-solidity)
[

](https://coveralls.io/github/OpenZeppelin/zeppelin-solidity?branch=coveralls
)
[

](https://coveralls.io/github/OpenZeppelin/zeppelin-solidity?branch=master
)
OpenZeppelin is a library for writing secure
[
Smart Contracts
](
https://en.wikipedia.org/wiki/Smart_contract
)
on Ethereum.
...
...
scripts/coverage.sh
View file @
ed872ca0
#!
/bin/bash
#!/bin/bash
# Executes cleanup function at script exit.
trap
cleanup EXIT
output
=
$(
nc
-z
localhost 8555
;
echo
$?
)
[
$output
-eq
"0"
]
&&
trpc_running
=
true
if
[
!
$trpc_running
]
;
then
cleanup
()
{
# Kill the testrpc instance that we started (if we started one).
if
[
-n
"
$testrpc_pid
"
]
;
then
kill
-9
$testrpc_pid
fi
}
testrpc_running
()
{
nc
-z
localhost 8555
}
if
testrpc_running
;
then
echo
"Using existing testrpc-sc instance"
else
echo
"Starting testrpc-sc to generate coverage"
#
we give each account 1M ether, needed for high-value tests
#
We define 10 accounts with balance 1M ether, needed for high-value tests.
./node_modules/ethereumjs-testrpc-sc/bin/testrpc
--gasLimit
0xfffffffffff
--port
8555
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501200,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501201,1000000000000000000000000"
\
...
...
@@ -19,7 +31,7 @@ if [ ! $trpc_running ]; then
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501208,1000000000000000000000000"
\
--account
=
"0x2bdd21761a483f71054e14f5b827213567971c676928d9a1808cbfa4b7501209,1000000000000000000000000"
\
>
/dev/null &
trpc_pid
=
$!
t
est
rpc_pid
=
$!
fi
SOLIDITY_COVERAGE
=
true
&&
./node_modules/.bin/solidity-coverage
SOLIDITY_COVERAGE
=
true
./node_modules/.bin/solidity-coverage
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment