where to write unit test? #402
-
Discord user IDNo response Describe your question in detail.i am seeing unit tests written directly inside the program in source/example.move and tests written in scripts/example.move in a test or script folder and also in both. What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?macOS Which SDK or tool are you using? (if any)N/A Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
you can write your unit tests in tests folder too. If your code is too long, you can use tests folder and create test file there. |
Beta Was this translation helpful? Give feedback.
if your module code is too long, you might want to write tests in other file for better readability.