Skip to content

Commit

Permalink
Merge pull request #3121 from nspcc-dev/neotest-doc
Browse files Browse the repository at this point in the history
neotest: improve doc based on #3120
  • Loading branch information
roman-khimov authored Sep 5, 2023
2 parents 2f54f17 + 4c015b3 commit c6850b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/neotest/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ Usually it's used like this:
Higher-order methods provided in Executor and ContractInvoker hide the details
of transaction creation for the most part, but there are lower-level methods as
well that can be used for specific tasks.
It's recommended to have a separate folder/package for tests, because having
them in the same package with the smart contract iself can lead to unxpected
results if smart contract has any init() functions. If that's the case they
will be compiled into the testing binary even when using package_test and their
execution can affect tests. See https://github.com/nspcc-dev/neo-go/issues/3120 for details.
*/
package neotest

0 comments on commit c6850b4

Please sign in to comment.