Cover example contracts with tests #1406

Open
opened 2025-12-28 17:16:19 +00:00 by sami · 1 comment
Owner

Originally created by @AnnaShaleva on GitHub (Oct 28, 2024).

Some of our example contracts are not tested although they are complicated. In fact, only NNS contract has some unit-tests.

Describe the solution you'd like

At least complicated contracts like nft-nd and nft-d must be covered with neotest unit tests. Ideally, all of them must be covered with tests. First of all, these contracts are examples for other SC developers. Secondly, when we extend these contracts, we need to have a way to check that extension works properly, e.g. for situations like in https://github.com/nspcc-dev/neo-go/pull/3560.

Describe alternatives you've considered

No alternatives, tests are must-have.

Originally created by @AnnaShaleva on GitHub (Oct 28, 2024). ## Is your feature request related to a problem? Please describe. Some of our example contracts are not tested although they are complicated. In fact, only NNS contract has some unit-tests. ## Describe the solution you'd like At least complicated contracts like `nft-nd` and `nft-d` must be covered with neotest unit tests. Ideally, all of them must be covered with tests. First of all, these contracts are *examples* for other SC developers. Secondly, when we extend these contracts, we need to have a way to check that extension works properly, e.g. for situations like in https://github.com/nspcc-dev/neo-go/pull/3560. ## Describe alternatives you've considered No alternatives, tests are must-have.
Author
Owner

@AnnaShaleva commented on GitHub (Dec 9, 2024):

Ping to this issue, there's a demand from user side to see how neotest works, and currently we can only provide NNS tests as an example. It's always good when we can provide more examples on how to use neotest.

@AnnaShaleva commented on GitHub (Dec 9, 2024): Ping to this issue, there's a demand from user side to see how `neotest` works, and currently we can only provide NNS tests as an example. It's always good when we can provide more examples on how to use neotest.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neo-go#1406
No description provided.