File tree Expand file tree Collapse file tree 3 files changed +10
-85
lines changed Expand file tree Collapse file tree 3 files changed +10
-85
lines changed Original file line number Diff line number Diff line change 1
- const { execSync } = require ( "child_process" ) ;
2
- const log = console . log ;
1
+ const config = require ( "./.solcover.js" )
3
2
4
- // Copies pre-built token artifacts to .coverage_artifacts/contracts
5
- function provisionTokenContracts ( config ) {
6
- let output ;
7
- const provisionColonyToken = `bash ./scripts/provision-token-contracts.sh` ;
8
-
9
- log ( 'Provisioning ColonyToken contracts...' )
10
- output = execSync ( provisionColonyToken ) ;
11
- log ( output . toString ( ) )
12
- }
13
-
14
- module . exports = {
15
- skipFiles : [
16
- 'Migrations.sol' ,
17
- 'common/EtherRouter.sol' ,
18
- 'patriciaTree' ,
19
- 'testHelpers' ,
20
- 'ens'
21
- ] ,
22
- providerOptions : {
23
- port : 8555 ,
24
- network_id : 1999 ,
25
- account_keys_path : "./ganache-accounts.json" ,
26
- vmErrorsOnRPCResponse : false ,
27
- total_accounts : 18
28
- } ,
29
- onCompileComplete : provisionTokenContracts ,
30
- istanbulFolder : "./coverage-extensions" ,
31
- modifierWhitelist : [ "always" ] ,
32
- }
3
+ config . istanbulFolder = "./coverage-extensions"
33
4
5
+ module . exports = config
Original file line number Diff line number Diff line change 1
- const { execSync } = require ( "child_process" ) ;
2
- const log = console . log ;
1
+ const config = require ( "./.solcover.js" )
3
2
4
- // Copies pre-built token artifacts to .coverage_artifacts/contracts
5
- function provisionTokenContracts ( config ) {
6
- let output ;
7
- const provisionColonyToken = `bash ./scripts/provision-token-contracts.sh` ;
8
-
9
- log ( 'Provisioning ColonyToken contracts...' )
10
- output = execSync ( provisionColonyToken ) ;
11
- log ( output . toString ( ) )
12
- }
13
-
14
- module . exports = {
15
- skipFiles : [
16
- 'Migrations.sol' ,
17
- 'common/EtherRouter.sol' ,
18
- 'patriciaTree' ,
19
- 'testHelpers' ,
20
- 'ens' ,
21
- ] ,
22
- providerOptions : {
23
- port : 8555 ,
24
- network_id : 1999 ,
25
- account_keys_path : "./ganache-accounts.json" ,
26
- vmErrorsOnRPCResponse : false ,
27
- total_accounts : 18
28
- } ,
29
- onCompileComplete : provisionTokenContracts ,
30
- istanbulFolder : "./coverage-reputation" ,
31
- modifierWhitelist : [ "always" ] ,
32
- }
3
+ config . istanbulFolder = "./coverage-reputation"
33
4
5
+ module . exports = config
Original file line number Diff line number Diff line change 1
1
const { execSync } = require ( "child_process" ) ;
2
- const log = console . log ;
3
-
4
- // Copies pre-built token artifacts to .coverage_artifacts/contracts
5
- function provisionTokenContracts ( config ) {
6
- let output ;
7
- const provisionColonyToken = `bash ./scripts/provision-token-contracts.sh` ;
8
-
9
- log ( 'Provisioning ColonyToken contracts...' )
10
- output = execSync ( provisionColonyToken ) ;
11
- log ( output . toString ( ) )
12
- }
2
+ const config = require ( "./.solcover.js" )
13
3
14
4
function getFilesToSkip ( ) {
15
5
const array = [
@@ -24,16 +14,7 @@ function getFilesToSkip(){
24
14
return array . concat ( output . toString ( ) . split ( '\n' ) . slice ( 0 , - 1 ) )
25
15
}
26
16
27
- module . exports = {
28
- skipFiles : getFilesToSkip ( ) ,
29
- providerOptions : {
30
- port : 8555 ,
31
- network_id : 1999 ,
32
- account_keys_path : "./ganache-accounts.json" ,
33
- vmErrorsOnRPCResponse : false ,
34
- total_accounts : 18
35
- } ,
36
- onCompileComplete : provisionTokenContracts ,
37
- istanbulFolder : "./coverage-upgrade"
38
- }
17
+ config . istanbulFolder = "./coverage-upgrade"
18
+ config . skipFiles = getFilesToSkip ( ) ;
39
19
20
+ module . exports = config
You can’t perform that action at this time.
0 commit comments