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 failures caused by a changed wording of failure messages #6708
Comments
I can also reproduce this locally with |
Hmm, even when I build detekt on our internal CI (which runs ubuntu), the same test failures happen and are fixed using my PR. It seems as if my CI and your CI use different versions of detekt, even though it is all built from the same commit... |
Run #6415 is stalled but should fix the build dependency issue which avoids this problem. |
In that case, Contributing.md should mention that. As a novice to the
project it's otherwise impossible to guess that 🙃
I can make a PR for that tomorrow if I feel motivated 🙈
Matthew Haughton ***@***.***> schrieb am Mo., 11. Dez. 2023,
22:12:
… Run ./gradlew publishToMavenLocal before the build. This is unfortunately
a necessary step to make sure the functional tests are using artifacts
produced by the build. Without that step the artifacts will be pulled from
Maven Central and the behaviour won't always align, leading to these
failures.
#6415 <#6415> is stalled but should
fix the build dependency issue which avoids this problem.
—
Reply to this email directly, view it on GitHub
<#6708 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADGCNGIQTXAM26QMEGWEODDYI5ZM3AVCNFSM6AAAAABAPYCIW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJQHA4TKOBVGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Agreed, this should be covered in that doc. A PR is very welcome, thanks! |
Adds a small note to Contributing.md that detekt needs to be built before running functional tests (Closes detekt#6708)
Adds a small note to Contributing.md that detekt needs to be built before running functional tests (Closes #6708)
Adds a small note to Contributing.md that detekt needs to be built before running functional tests (Closes detekt#6708)
Expected Behavior
The build and tests succeed when checking out
origin/main
Observed Behavior
The build fails with the following message:
The full build log is attached here: buildLog.txt
Amongst others, it fails at
JvmSpec.kt
line 17 which states:assertThat(result.output).contains("failed with 3 issues.")
The actual output, however, contains
"failed with 3 weighted issues."
, so, changing the above line toassertThat(result.output).contains("failed with 3 weighted issues.")
fixes the issue. I will shortly post a PR that contains all places where this is happening.
Steps to Reproduce
origin/main
(In particular, I ran this on8e350ee7a895baacdbeb4480812cfb173ae750a8
)./gradlew build -x dokkaHtml
Context
N/A
Your Environment
Version of detekt used: N/A
Commit affected:
8e350ee7a895baacdbeb4480812cfb173ae750a8
Version of Gradle used (if applicable): 8.5
Gradle scan link (add
--scan
option when running the gradle task): https://gradle.com/s/bwo67jnwume24Operating System and version: Windows 10 Version 21H2
Link to your project (if it's a public repository): N/A
The text was updated successfully, but these errors were encountered: