-
Notifications
You must be signed in to change notification settings - Fork 99
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
Bug some of the tests in the report are not being executed. #50
Comments
There is 400 lines in our report and the test being executed is only 329(405 executed, 329 actual all others seems to be duplicate as from the output). So I was wondering if there is a way to figure out which one are skipped automatically. |
As I can see from the code is it because of the sorting of how the reported test are read from the report? maybe we need a sort there also? |
Could you provide link to the part of the code you mean?
You can run
If you removed or renamed the file If test file exists in test directory but not in knapsack report then the test file will be run (it's called leftover test). If you want to track newly added or renamed test files just try https://knapsackpro.com for a few week or so and compare results with what you have now. |
The file is there and its in the report but its not executed(from the output on CI, no pipeline have it) and from the output I get from the CI, i found that there are some files that are running multiple times across different nodes. The line I talked about is https://github.com/ArturT/knapsack/blob/516aedd5ecf3bd0c900ca00e9da22d139e0f7d1d/lib/knapsack/distributors/leftover_distributor.rb#L5 From what I get the total number of test that got ran is correct but as there is so many duplicate a lot are actually skipped(for the output of file name that get executed 76 duplicates are there). |
|
We have |
Thanks for your help got it fixed. |
Adding Could you provide more context about the investigation you did? Is there a real bug in the gem then I'd like to fix that. If not then what was the root of your problem then? |
some of the configuration for running the test was wrong so however one of the pipeline is not executed on the CI. Its not a real bug. |
OK. Thank you! |
we have
"spec/requests/api/artists_spec.rb": 5.043759346008301,
in the report but its not actually executed in our CI. I was wondering is there a way to check what's the files being executed?(is it only possible to look through the output in the CI pipeline) And we do find that the problem is fixed after we regenerate the report again so not sure what's wrong(the line in the report was updated). By the way we are using minitest.The text was updated successfully, but these errors were encountered: