https://kotlinlang.org logo
#konsist
Title
# konsist
d

Denys

11/17/2023, 2:47 PM
I have a simple test and a simple case that I want to cover with this test. The only problem is that there is no way to do this in Konsist. There is the following test:
Copy code
Konsist
    .scopeFromProject()
    .classes()
    .withAllParentsOf(AppCompatActivity::class)
    .assertTrue { it.name.endsWith("Activity") }
But the problem is that all my Activities are inherited not from AppCompatActivity, but from BaseActivity, which in turn is already inherited from AppCompatActivity. And this test does not work correctly (Tell me, is there a solution to this problem?
i

igor.wojda

11/18/2023, 2:30 PM
We are working on parents resolution. Will be added in the next release.
👍 3
2 Views