Remove zeppelin unit tests (superceded by full e2e in CI)

pull/336/head
cgewecke 5 years ago
parent 6bd12e3535
commit 83da3a2fbb
  1. 3
      .gitmodules
  2. 2
      README.md
  3. 56
      test/zeppelin.js

3
.gitmodules vendored

@ -1,3 +0,0 @@
[submodule "test/sources/openzeppelin-solidity"]
path = test/sources/zeppelin
url = https://github.com/OpenZeppelin/openzeppelin-solidity

@ -17,7 +17,7 @@ find discrepancies between the coverage report and your suite's behavior, please
### Install
```
$ npm install --save-dev solidity-coverage
$ npm install --save-dev solidity-coverage@beta
```
### Run

@ -1,56 +0,0 @@
/* eslint-env node, mocha */
const solc = require('solc');
const getInstrumentedVersion = require('./../lib/instrumentSolidity.js');
const util = require('./util/util.js');
describe('Battery test of production contracts: OpenZeppelin', () => {
it('should compile after instrumenting ConditionalEscrow.sol', () => {
const conditionalEscrow = getInstrumentedVersion(util.getCode('zeppelin/contracts/payment/escrow/ConditionalEscrow.sol'), 'ConditionalEscrow.sol');
const escrow = getInstrumentedVersion(util.getCode('zeppelin/contracts/payment/escrow/Escrow.sol'), 'Escrow.sol');
const safeMath = getInstrumentedVersion(util.getCode('zeppelin/contracts/math/SafeMath.sol'), 'SafeMath.sol');
const secondary = getInstrumentedVersion(util.getCode('zeppelin/contracts/ownership/Secondary.sol'), 'Secondary.sol');
const input = JSON.stringify({
language: 'Solidity',
sources: {
'ConditionalEscrow.sol': { content: conditionalEscrow.contract },
'Escrow.sol': { content: escrow.contract},
'SafeMath.sol': { content: safeMath.contract},
'Secondary.sol': { content: secondary.contract},
},
settings: {
remappings: ["math/=", "ownership/=" ]
}
});
const output = JSON.parse(solc.compile(input));
util.report(output.errors);
});
it('should compile after instrumenting FinalizableCrowdsale', () => {
const finalizableCrowdsale = getInstrumentedVersion(util.getCode('zeppelin/contracts/crowdsale/distribution/FinalizableCrowdsale.sol'), 'FinalizableCrowdsale.sol');
const timedCrowdsale = getInstrumentedVersion(util.getCode('zeppelin/contracts/crowdsale/validation/TimedCrowdsale.sol'), 'TimedCrowdsale.sol');
const safeMath = getInstrumentedVersion(util.getCode('zeppelin/contracts/math/SafeMath.sol'), 'SafeMath.sol');
const crowdsale = getInstrumentedVersion(util.getCode('zeppelin/contracts/crowdsale/Crowdsale.sol'), 'Crowdsale.sol');
const ierc20 = getInstrumentedVersion(util.getCode('zeppelin/contracts/token/ERC20/IERC20.sol'), 'IERC20.sol');
const safeErc20 = getInstrumentedVersion(util.getCode('zeppelin/contracts/token/ERC20/SafeERC20.sol'), 'SafeERC20.sol');
const reentrancyGuard = getInstrumentedVersion(util.getCode('zeppelin/contracts/utils/ReentrancyGuard.sol'), 'ReentrancyGuard.sol');
const input = JSON.stringify({
language: 'Solidity',
sources: {
'FinalizableCrowdsale.sol': { content: finalizableCrowdsale.contract },
'TimedCrowdsale.sol': { content: timedCrowdsale.contract},
'SafeMath.sol': { content: safeMath.contract},
'Crowdsale.sol': { content: crowdsale.contract},
'IERC20.sol': { content: ierc20.contract},
'SafeERC20.sol': { content: safeErc20.contract},
'ReentrancyGuard.sol': { content: reentrancyGuard.contract},
},
settings: {
remappings: ["math/=", "token/ERC20/=", "utils/=", "crowdsale/=", "validation/="]
}
});
const output = JSON.parse(solc.compile(input));
util.report(output.errors);
});
});
Loading…
Cancel
Save