we should write an idiomatic test for use as reference for future tests #495
timotheecour
started this conversation in
Ideas
Replies: 3 comments 1 reply
-
I agree. I could write an article first. |
Beta Was this translation helpful? Give feedback.
1 reply
-
That was my idea with https://nim-lang.github.io/Nim/testament.html see "Writing Unittests". |
Beta Was this translation helpful? Give feedback.
0 replies
-
indeed; that section in https://nim-lang.github.io/Nim/testament.html badly needs to be updated with more current best practices |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
/cc @xflywind
goal
consolidate all best practices into 1 or a few tests that show:
where to put it
somewhere linked from contributing.rst
example
maybe we can distinguish comments expected to be in the test (eg:
# bug #8242, bug #12586
) from comments intended for educational purpose (eg:# avoid
block strip:until https://github.com/nim-lang/Nim/issues/14778 is fixed
)example 2
for networking tests, avoid hardcoded ports, refs https://github.com/nim-lang/Nim/pull/16678/files#r555450480 and nim-lang#14327
links
nim-lang#14778
common review comments · Issue #534 · timotheecour/Nim
Beta Was this translation helpful? Give feedback.
All reactions