Coder Social home page Coder Social logo

akropolis-sale's People

Contributors

jakub-wojciechowski avatar onigiri-x avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

bolpol

akropolis-sale's Issues

Execute integration test strategies

Some strategies:

  • buyers who purchase in various rounds

  • presale allocated investors who also white list and purchase in the ICO

  • Different allocation setups

  • Trying to finalize the token sale in innappropriate times

  • Trying to buy when token sale is over

*Will continue to add to this list

solidity-coverage

I tried to open a PR, which might be simpler but I have it working on my machine.

.solcover.js looks like:

module.exports = {
  port: 8555,
  compileCommand: '../node_modules/.bin/truffle compile',
  testCommand: '../node_modules/.bin/truffle test --network coverage',
  copyPackages: ['zeppelin-solidity']
}

truffle.js

// Allows us to use ES6 in our migrations and tests.
require('babel-register');
require('babel-polyfill');

module.exports = {
	networks: {
		development: {
			host: 'localhost',
			port: 8545,
			network_id: '*' // Match any network id
		},
        coverage: {
            host: 'localhost',
            network_id: '*', // eslint-disable-line camelcase
            port: 8555,
            gas: 0xfffffffffff, // <-- Use this high gas value
            gasPrice: 0x01      // <-- Use this low gas price
        },
        solc: {
            optimizer: {
                enabled: true,
                runs: 200
            }
        }
	}
};

Modified the package.json scripts to look like this so just run: npm run coverage:

"coverage": "./node_modules/.bin/solidity-coverage",

Output:
screen shot 2018-01-15 at 7 21 35 pm

There's also a full line by line coverage report generated by Istanbul in the coverage directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.