-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
EPIC: Improve test cases #287
Comments
Hello @prisis. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! |
For the long run we could try to create a type + abstraction like this: export type SeededRun<Module, K extends keyof Module = keyof Module> = {
seed: number;
expectations: {
[P in K]: any;
};
}; But it would be cool to also have somehow have the expectations values typed 🤔 The benefit would be to get typescript-notified if there is a missing test |
@prisis, I can do |
I will do 👍 Please make them in 3 dedicated PRs, then I will update the PR numbers also |
@prisis you missed |
It was hacked 🤣 yeah, was printing all test file out |
Guys, this pattern is flawed: // Create and log-back the seed for debug purposes
faker.seed(Math.ceil(Math.random() * 1_000_000_000));
describe(`random seeded tests for seed ${faker.seedValue}`, () => { It should be more like this: // Create and log-back the seed for debug purposes
const seed = Math.ceil(Math.random() * 1_000_000_000);
describe(`random seeded tests for seed ${seed}`, () => {
beforeAll(() => {
faker.seed(seed);
}); ...or even Please review your PRs for that case. |
You are missing that we added |
@Shinigami92 I think you and @piotrekn are referring to different things. As you can see there is no faker.seed() inside this section anymore: Lines 101 to 115 in f1884be
However, this isn't needed because the main purpose of those methods is to randomly execute the methods and check for unexpected behavior. These tests should be removed or disabled by default in the medium term to remove the flaky test coverage behavior. |
@ST-DDT ah yes, you are totally right The weather is grey here and I feel a bit weak today, so sorry if I confuse some stuff |
Vehicle is driving me crazy, so I will tackle that now 😜 |
For some tests I have no words... |
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
I will now rewrite the internet |
I will try targeting |
We are near to finish 🏁 Only reviews are needed! |
All done 🎉 |
List of test that need to be checked and adjusted:
The text was updated successfully, but these errors were encountered: