-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Test Coverage Reporting #14343
base: main
Are you sure you want to change the base?
Test Coverage Reporting #14343
Conversation
d6198ed
to
2149314
Compare
@josevalim Do you have any preference on how to deal with the (See https://github.com/elixir-lang/elixir/actions/runs/13929976188/job/38984368756?pr=14343) |
@maennchen probably the best option is to check if coverage is enabled and perform only a partial assertion (i.e. break this assertion in two), the second one wrapped by a conditional. |
@josevalim Ok, I will do that. Do you btw. know the reason why this doesn't work while cover compiled? |
2149314
to
943b7be
Compare
We traverse the stored ast when analyzing the error message but when cover compiling the information is lost. |
943b7be
to
a4e7a7b
Compare
@josevalim I got it down to one test failure:
The |
@maennchen i would have to investigate locally which order is being printed. It seems it was supposed to be alphabetical. |
e4420f0
to
64f4c8d
Compare
8d07aca
to
66ee072
Compare
Splitting PR into multiple PRs. Marking as draft until done. |
Prep for Coverage Reporting in tests
66ee072
to
e190fad
Compare
Changes
Implements test coverage reporting.
Requirements
mix test.coverage
for reporting (generated lines etc.)TODOs / Issues
mix test.coverage
Summaries depend onmix
being present. Find a way to avoid duplicating code.FunctionClauseError
message)