From 24fd947c938dc589068c7d6e09074dd8a7c1a895 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Thu, 6 Dec 2018 16:09:51 +0100 Subject: [PATCH] py-evm: enable tracing --- Understanding-and-debugging-Nimbus-EVM-JSON-tests.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md index b2956e4..67a03e5 100644 --- a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md +++ b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md @@ -174,8 +174,9 @@ Some terminals don't support colour output and in this case you will see lots of ### py-evm +- run a single JSON test with tracing enabled (by the logging level): ``` -pytest -v --log-level=DEBUG -k fixtures/GeneralStateTests/stAttackTest/ContractCreationSpam.json tests/json-fixtures/test_state.py --fork Homestead +pytest -o log_cli=true --log-cli-level=NOTSET -k fixtures/GeneralStateTests/stAttackTest/ContractCreationSpam.json tests/json-fixtures/test_state.py --fork Homestead ``` Installation hints: - use a virtualenv