0.1.13 • Published 1 year ago

vitest-solidity-coverage v0.1.13

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

vitest-solidity-coverage

A vitest coverage provider + hardhat plugin to make solidity-coverage works with vitest

how it works

it provide a hardhat task compile-for-coverage which generate artifact like the default solidity-coverage hardhat plugin do (except it only compiles)

So you call it this way

hardhat compile-for-coverage

It also provide a vitest coverage provider. You use it this way

add a vitest.config.ts

import {defineConfig} from 'vitest/config';
export default defineConfig({
	test: {
		coverage: {
			provider: 'custom',
			customProviderModule: 'vitest-solidity-coverage',
		},
	},
});

you can then do:

vitest run --coverage

Note we use run as this package does not support live-reload probably due to some race condition when using vitest threading.

If you want live reload of coverage you can run vitest this way

vitest --coverage --no-threads
0.1.13

1 year ago

0.1.13-debug.1

1 year ago

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.12-debug.1

1 year ago

0.1.12-debug.2

1 year ago

0.1.12-debug.3

1 year ago

0.1.12-debug.4

1 year ago

0.1.12-debug

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago