test: don't run CodingRulesTest on test classes

This commit is contained in:
Gauthier Roebroeck 2022-11-03 17:46:19 +08:00
parent a085e63567
commit 50a4638c55

View File

@ -1,5 +1,6 @@
package org.gotson.komga.architecture
import com.tngtech.archunit.core.importer.ImportOption
import com.tngtech.archunit.junit.AnalyzeClasses
import com.tngtech.archunit.junit.ArchTest
import com.tngtech.archunit.library.GeneralCodingRules.NO_CLASSES_SHOULD_ACCESS_STANDARD_STREAMS
@ -8,7 +9,7 @@ import com.tngtech.archunit.library.GeneralCodingRules.NO_CLASSES_SHOULD_USE_JAV
import com.tngtech.archunit.library.GeneralCodingRules.NO_CLASSES_SHOULD_USE_JODATIME
import org.gotson.komga.Application
@AnalyzeClasses(packagesOf = [Application::class])
@AnalyzeClasses(packagesOf = [Application::class], importOptions = [ImportOption.DoNotIncludeTests::class])
class CodingRulesTest {
@ArchTest