Skip to content

Commit

Permalink
Add architecture tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rawa committed Oct 2, 2023
1 parent c2cf05e commit 4b89471
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package net.mullvad.mullvadvpn.test.arch

import com.lemonappdev.konsist.api.Konsist
import com.lemonappdev.konsist.api.architecture.KoArchitectureCreator.assertArchitecture
import com.lemonappdev.konsist.api.architecture.Layer
import org.junit.Test

class ArchitectureTests {

@Test
fun `domain layer depends on nothing`() {
Konsist.scopeFromProduction().assertArchitecture {
val domain = Layer("Domain", "net.mullvad.mullvadvpn.model..")

domain.dependsOnNothing()
}
}
}

0 comments on commit 4b89471

Please sign in to comment.