mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-17 08:07:51 +00:00
chore(test/coverage): warn when using RPC and coverage in tests
This commit is contained in:
parent
d30b00e526
commit
427d2c69a8
@ -129,6 +129,11 @@ class Test {
|
||||
return callback(__("contracts config error: unknown deployment type %s", type));
|
||||
}
|
||||
|
||||
if (this.options.coverage && type === 'rpc') {
|
||||
this.logger.warn(__('Coverage does not work with an RPC node'));
|
||||
this.logger.warn(__('You can change to a WS node (`"type": "ws"`) or use the simulator (no node or `"type": "vm"`)'));
|
||||
}
|
||||
|
||||
if (accounts || (port && port !== this.simOptions.port) || (type && type !== this.simOptions.type) ||
|
||||
(host && host !== this.simOptions.host)) {
|
||||
resetServices = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user