Hi! I'm wondering if you know what are the plans f...
# konsist
m
Hi! I'm wondering if you know what are the plans for Konsist project? Like, I see (or at least get an impression) that activity is decreasing. Looking at the roadmap its already 3 quarters behind the schedule. I'm considering using it in my projects but I'm not convinced if its a good idea, having the points above in mind.
k
what's the alternative?
are you missing something specific?
i
Hey @Michał Doliński this is a good question. We have been very busy with commercial projects, so unfortunately we haven't got much time to work on Konist. Thats being said project is still maintained and we actually plan to shift our focus to Konist in few weeks.
m
@kqr not really an alternative but i'm coming from Java world and there theres the Archunit. It lacks Kotlin support though but for me it is like a baseline for a tool like this. And about the feature(s) I lack - so far I indetified I can't assert method calls. Something like mentioned in this SO question.
i
Konsist does not support this in the api but you can always use
text
property to get string representing class. Not the most optimal way, but it will work:
Copy code
Konsist
    .scopeFromProject()
    .classes()
    .withName("Foo") // pick your class
    .assertTrue {
        !it.text.contains(".methodName()")
    }
You can also check imports of class:
Copy code
Konsist
            .scopeFromProject()
            .classes()
            .withName("Foo")
            .assertTrue {
                it.containingFile.hasImportWithName("com.lemonappdev.test")
            }