-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
bug: traces
field is missing when display option --json
is set
#6922
Closed
2 tasks done
Tracked by
#8794
Labels
A-tracing
Area: tracing
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
T-to-investigate
Type: to investigate
Milestone
Comments
cc @onbjerg is this a consequence of the tracing refactor? |
No this is a consequence of the Alloy port, some types are not ser/de |
Should be fixed with next revm + evm-inspectors update: paradigmxyz/revm-inspectors#47 |
Re-running with given setup now yields:
{
"test/Counter.t.sol:CounterTest": {
"duration": "6ms 584us 664ns",
"test_results": {
"testFuzz_SetNumber(uint256)": {
"status": "Success",
"reason": null,
"counterexample": null,
"logs": [],
"kind": {
"Fuzz": {
"first_case": {
"calldata": "0x5c7f60d700000000000000000000000000000000000000cc8edadd275ec2b562a63dee4b",
"gas": 52636,
"stipend": 21348
},
"runs": 256,
"mean_gas": 31054,
"median_gas": 31288
}
},
"labeled_addresses": {},
"duration": {
"secs": 0,
"nanos": 6174286
},
"breakpoints": {}
},
"test_Increment()": {
"status": "Success",
"reason": null,
"counterexample": null,
"logs": [],
"kind": {
"Unit": {
"gas": 31303
}
},
"labeled_addresses": {},
"duration": {
"secs": 0,
"nanos": 181373
},
"breakpoints": {}
}
},
"warnings": []
}
} I think this is still an issue |
zerosnacks
added
Cmd-forge-test
Command: forge test
C-forge
Command: forge
A-tracing
Area: tracing
labels
Jul 10, 2024
zerosnacks
changed the title
Traces missing when display option --json is set
bug: Jul 10, 2024
traces
field is missing when display option --json
is set
36 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-tracing
Area: tracing
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
T-to-investigate
Type: to investigate
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (1839c72 2024-01-27T14:45:19.822383666Z)
What command(s) is the bug in?
forge test -vvvv --json
Operating System
Linux
Describe the bug
forge test -vvvv
prints the traces butforge test -vvvv --json
does not.Setup
Commands
forge test -vvvv
Output
Here is the same command with
--json
. Traces are missing from the outputIs this a bug? If not how can I get the traces like in the older version?
The text was updated successfully, but these errors were encountered: