Skip to content

Commit

Permalink
Do not do architecture tests for test classes
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Sep 8, 2024
1 parent e2d405d commit c855d00
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.jabref.logic.importer.fileformat.ImporterTestEngine;

import com.tngtech.archunit.core.domain.JavaClasses;
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;
Expand All @@ -13,9 +14,11 @@
import static com.tngtech.archunit.library.Architectures.layeredArchitecture;

/**
* This class checks JabRef's shipped classes for architecture quality
* This class checks JabRef's shipped classes for architecture quality.
*
* Does not analyze test classes. Hint from <a href="https://stackoverflow.com/a/44681895/873282">StackOverflow</a>
*/
@AnalyzeClasses(packages = "org.jabref")
@AnalyzeClasses(packages = "org.jabref", importOptions = ImportOption.DoNotIncludeTests.class)
class MainArchitectureTest {

public static final String CLASS_ORG_JABREF_GLOBALS = "org.jabref.gui.Globals";
Expand Down

0 comments on commit c855d00

Please sign in to comment.