Skip to content
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

The hasLocationStrings custom assert is broken #1706

Closed
cortinico opened this issue Jun 19, 2019 · 1 comment
Closed

The hasLocationStrings custom assert is broken #1706

cortinico opened this issue Jun 19, 2019 · 1 comment
Labels

Comments

@cortinico
Copy link
Member

This issue is related to the detekt testing framework and the hasLocationStrings custom assert.

After some investigation looks like the hasLocationStrings we're using in the tests is broken and is never asserting properly. Apparently the hasLocationStrings are always succeeding and a failure is never raised.

Expected Behavior

The hasLocationStrings assertion should fail if the provided location string is not correct.

Observed Behavior

The hasLocationStrings assertion never fails.

Steps to Reproduce

I do have a branch where tests are supposed to be broken:
https://github.com/cortinico/detekt/tree/break-hasLocationString

Specifically in this commit: cortinico@7077bf3
Looks like all the tests passed:
https://github.com/cortinico/detekt/runs/149976114

Context

See comments in #1690

@rock3r
Copy link
Contributor

rock3r commented Jun 20, 2019

Just for later reference if anyone stumbles upon this being closed — it was fixed in #1707 :)

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants