mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Support coverage in neotest #972
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#972
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fyrchik on GitHub (Aug 22, 2022).
It would be nice to check that contract tests cover all possible branches.
So basically there are 2 parts:
DebugInfo. It has a lot of runtime overhead, but we can have a separate package which contains all the logic and use it only with certain test flags.As a nice consequence, we can use this to check for the presence of dead-code which can be used to optimize the compiler itself.
The most difficult part of this is to figure out clean interface without a lot of overhead.
Another difficulty (optional feature) is to have nice green lines displayed by GoLand, so far this was my biggest issue.
@roman-khimov commented on GitHub (Aug 22, 2022):
Yeah, that'd be really cool, but I think it can only be done properly at the VM level and it won't be trivial.
@fyrchik commented on GitHub (Aug 22, 2022):
The thing I had in mind is to leave VM as it is: make custom
Executewhich executes code step-by-step and updates seen opcodes/lines. Thevm.Runis rather simple so it can be copied with minimum changes.@AnnaShaleva commented on GitHub (Dec 28, 2022):
We have POC written by @fyrchik in https://github.com/nspcc-dev/neo-go/tree/neotest-coverage, so let's keep this branch linked for now.
@roman-khimov commented on GitHub (Dec 28, 2024):
Still relevant?