testingrequired / bespin

A test framework engine
0 stars 0 forks source link

async-runner + spec-test-file-parser = non deterministic tests #38

Closed kyleect closed 3 years ago

kyleect commented 3 years ago

Multiple tests in the same test file running asynchronously mutate the closure in the test file.

kyleect commented 3 years ago

Fixed this be doing two passes when parsing tests in spec-test-file-parser. Parse test names then run parse for each test name deleting the require cache each time. This ensures no shared closures.