New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix(test)] tests are flaky #60
Comments
Have a suspicion the flakiness comes partially from compilation step. There's a value testing against compiled files as that's what gets distributed. That said, think we might benefit from running the coverage against unprocessed source as that's the real and less prone to flakiness source of truth. Have you had any successful experiments around this issue @shadowgate15 ? |
I'm adding few tests to increase test coverage and hopefully make the build pass at lease on Node v10. It still puzzles me what's the main source of difference between test coverage in v10 vs v12 |
The master is 🟢 again! Have added coverage and reworked how |
Yeah I was planning on creating a new solution for the logger outputs whenever I did the refactor on the tests.
… On Jan 4, 2021, at 9:22 PM, naz ***@***.***> wrote:
The master is 🟢 again! Have added coverage and reworked how logger = _.cloneDeep(console) was used. The problem with cloning console is that it produces way to much junk output during the test run and was hiding the information about which test has caused an unhandled exception. Having explicit logger variable declarations also gives tests more readability imo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@shadowgate15 is there a plan for this planned refactor somewhere? What is the goal that needs achieving through the refactor? |
I’m in the middle of it, currently. The goal would be to reduce the flakiness, have it match your most recent refactor of the source code, and overall make the tests more readable for future changes.
… On Jan 5, 2021, at 4:06 PM, naz ***@***.***> wrote:
@shadowgate15 is there a plan for this planned refactor somewhere? What is the goal that needs achieving through the refactor?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Sounds awesome. Having one giant test.js file was getting hard to reason about. Also would be good to clarify the cases when "serial" test cases should be used. My guess was they were made serial because of the flakiness? |
The serial tests were used because of the use of @sinonjs/clock to simulate time passing in those tests. I’m hoping to either remove the need for those or come up with an alternative solution for it.
… On Jan 5, 2021, at 4:13 PM, naz ***@***.***> wrote:
Sounds awesome. Having one giant test.js file was getting hard to reason about. Also would be good to clarify the cases when "serial" test cases should be used. My guess was they were made serial because of the flakiness?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
So the flaky tests were coming from
|
all good now |
currently tests are so flaky that coverage will change from test run to test run.
The text was updated successfully, but these errors were encountered: