-
-
Notifications
You must be signed in to change notification settings - Fork 757
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
Artifact detekt-test foreces dependency constraining #3082
Comments
Same for me. |
Some of the utils functions inside To name a couple:
Lines 8 to 13 in 793cece
detekt/detekt-test/src/main/kotlin/io/gitlab/arturbosch/detekt/test/FindingsAssertions.kt Line 91 in 793cece
|
I don't know to what degree there is coupling, but I believe there should at least have some degree of decoupling to hide the dependencies where they're just implementation details and perhaps maintain a separate artifact for the APIs that are more directly coupled. I didn't use the library enough to understand the whole breadth of scenarios it intends to cover and how mush Spek is expected to be present, but I believe there could either be a Also, is it possible to have the artifact assume a version in case there's none specified? I believe the dangers of diverging versions are present with or without that assumption anyway. |
You're totally right that we should probably expose a Agree that we should clean it up a bit and expose as EDIT: typo |
I've changed the dependencies to |
I'm trying to include
detekt-test
in a project but it fails as it can't find theapi
dependenciesassertj-core
andspek-dsl-jvm
. It gives me the following message:Which appears to be because the artifact expects me to use assertJ and speak. My question is, is it really necessary to use both of these libraries to write tests for custom rules? I'm leaning towards simpler jUnit tests, so I had to depend on these libraries to prevent gradle from breaking. Would it be better to not have the
api
dependencies? Or are these libraries really a requirement?The text was updated successfully, but these errors were encountered: