Skip to content
demo of a minimal car insurance policy as a Smart Contract on the Ethereum Blockchain
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
contracts
migrations
test
.gitignore
LICENSE Initial commit May 17, 2017
README.md
package.json
truffle.js flattened directory structure to make solidity-coverage work Oct 29, 2017
yarn.lock

README.md

ethCarInsurance

Demo of a minimal car insurance policy as a Smart Contract on the Ethereum Blockchain. This project serves as a sample for the toolchain involving

  • yarn as package manager
  • truffle as testing framework
  • solidity coverage for test coverage

Running tests

  • yarn to install all packages
  • npm start to start testrpc
  • leave testrpc running and open new terminal window in which you execute the following commands
  • npm run compile to see if you can compile everything (you can skip this step)
  • npm run migrate to see if you can migrate to testrpc (you can skip this step)
  • npm run test to run the truffle tests
  • npm run coverage to generate a test coverage report - you see an output in the command line and an output coverage report will be generated in a separate folder
You can’t perform that action at this time.