Jonathan Sarco
09/09/2023, 8:21 AM@Test
fun `layers with 3 dots`() {
Konsist
.scopeFromProject()
.assertArchitecture {
// Define layers
val services = Layer("Service", "nl.app.service..")
val repository = Layer("Repository", "nl.app.repository...")
services.dependsOnNothing()
}
}
This test passed although the repository
layer contains 3 dots (…) on his definition.
If I add repository._dependsOnNothing_()
, it throws com.lemonappdev.konsist.core.exception.KoPreconditionFailedException: Layer Repository doesn't contain any files.
and that’s okay!
And another test is, if I only define repository
alone without the service
, it also throws the exception which is fine.
My question is, should that definition of the 3 dots be caught before running repository._dependsOnNothing_()
if there is more than 1 layer?
Thanks!Natalia Peterwas
09/11/2023, 8:07 AMJonathan Sarco
09/11/2023, 10:41 AMigor.wojda
09/11/2023, 12:38 PMJonathan Sarco
09/11/2023, 1:27 PMigor.wojda
09/11/2023, 1:27 PMJonathan Sarco
09/12/2023, 4:15 PMigor.wojda
09/12/2023, 4:17 PMdevelop
Jonathan Sarco
09/12/2023, 5:06 PMkonsist-documentation
adding the branch develop
that all the PRs should point to. It might not necessary so it can be discarded the PR as well!
I explained in both PRs (konsist
and konsist-documentation
) a bit about the PR itself.
If I missed something or whatever, just let me know, more than open to change anything! 😬igor.wojda
09/12/2023, 6:38 PMapiTests
are failing. Please take a look.
https://github.com/LemonAppDev/konsist/actions/runs/6162428556/job/16726814429?pr=504
Other checks seems to require a bit of setup on our side, so I will take a look and try to fix them.igor.wojda
09/12/2023, 6:39 PMigor.wojda
09/12/2023, 7:01 PMdevelop
and address the comments.Jonathan Sarco
09/12/2023, 7:17 PMigor.wojda
09/14/2023, 7:59 AMJonathan Sarco
09/14/2023, 8:15 AM