Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brownie test works fine but --coverage flag hangs forever #1665

Open
bwgh0 opened this issue Jan 28, 2023 · 0 comments
Open

Brownie test works fine but --coverage flag hangs forever #1665

bwgh0 opened this issue Jan 28, 2023 · 0 comments

Comments

@bwgh0
Copy link

bwgh0 commented Jan 28, 2023

Environment information

  • brownie Version: 1.19.2
  • ganache-cli Version: 7.7.3
  • solc Version: 8.19.3
  • Python Version: 3.9.6
  • OS: MacOS Ventura

What was wrong?

brownie test --coverage hangs forever. Here is the full log below. As you can see running brownie test without the --coverage flag works well but with the --coverage flag it just hangs forever.

I've censored in the log below the full file directories.


% brownie test           
Brownie v1.19.2 - Python development framework for Ethereum

=============================================================================================== test session starts ================================================================================================
platform darwin -- Python 3.9.6, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Contract_Deployment_Land_Burnable
plugins: eth-brownie-1.19.2, forked-1.4.0, web3-5.31.1, xdist-1.34.0, hypothesis-6.27.3
collected 1 item                                                                                                                                                                                                   

Launching 'ganache-cli --chain.vmErrorsOnRPCResponse true --server.port 8545 --miner.blockGasLimit 12000000 --wallet.totalAccounts 10 --hardfork istanbul --wallet.mnemonic brownie'...

tests/test_1.py .                                                                                                                                                                                            [100%]

================================================================================================= warnings summary =================================================================================================
tests/test_1.py::test_land
tests/test_1.py::test_land
tests/test_1.py::test_land
tests/test_1.py::test_land
tests/test_1.py::test_land
tests/test_1.py::test_land
tests/test_1.py::test_land
~/Library/Python/3.9/lib/python/site-packages/eth_abi/codec.py:87: DeprecationWarning: abi.encode_abi() and abi.encode_abi_packed() are deprecated and will be removed in version 4.0.0 in favor of abi.encode() and abi.encode_packed(), respectively
    warnings.warn(

tests/test_1.py::test_land
~/Library/Python/3.9/lib/python/site-packages/eth_abi/codec.py:191: DeprecationWarning: abi.decode_abi() is deprecated and will be removed in version 4.0.0 in favor of abi.decode()
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
========================================================================================== 1 passed, 8 warnings in 0.88s ===========================================================================================
Terminating local RPC client...
 % brownie test --coverage
Brownie v1.19.2 - Python development framework for Ethereum

=============================================================================================== test session starts ================================================================================================
platform darwin -- Python 3.9.6, pytest-6.2.5, py-1.11.0, pluggy-1.0.0
rootdir: /Contract_Deployment_Land_Burnable
plugins: eth-brownie-1.19.2, forked-1.4.0, web3-5.31.1, xdist-1.34.0, hypothesis-6.27.3
collected 1 item                                                                                                                                                                                                   

Launching 'ganache-cli --chain.vmErrorsOnRPCResponse true --server.port 8545 --miner.blockGasLimit 12000000 --wallet.totalAccounts 10 --hardfork istanbul --wallet.mnemonic brownie'...

tests/test_1.py 

Please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant