Skip to content

Commit 3f5df58

Browse files
hobovskykazk
andauthored
Notes on variables captured in test closures (#268)
* Added notes on variables captured in test closures * Apply suggestions from code review Co-authored-by: kazk <kazk.dev@gmail.com> * Apply suggestions from code review Co-authored-by: kazk <kazk.dev@gmail.com> Co-authored-by: kazk <kazk.dev@gmail.com>
1 parent 308de57 commit 3f5df58

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

content/languages/javascript/authoring.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe("Generated test cases", () => {
105105

106106
This technique is liked by authors familiar with testing frameworks that provide parameterized or generated test cases out of the box, like NUnit or JUnit. However, some caution is needed when this approach is used. Test suites organized like this can become large and can flood the test output panel with many entries, making it unreadable or causing performance problems in client browsers.
107107

108+
108109
### Chai
109110

110111
JavaScript kata should use [Chai](https://www.chaijs.com/) as the assertion library.

content/languages/python/codewars-test/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ This is a convention used in many Python kata, but it's not a requirement, and a
4141

4242
Tests in the Python testing framework are composed of functions decorated with a set of Python decorators. All such functions are automatically discovered and run. The final result for every test block is determined by contained assertions and reported along with its measured execution time.
4343

44+
Test decorators call the functions immediately, so it's safe to use them in a loop.
45+
4446

4547
### Test groups: `@test.describe`
4648

0 commit comments

Comments
 (0)