Skip to content

Commit

Permalink
Do not touch build type of tests that explicitly set it
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Nov 3, 2023
1 parent 335d028 commit a9f60c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/testFixtures/java/org/lflang/tests/TestBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,9 +469,11 @@ private void validate(LFTest test) throws TestError {
}
}

/** Override to add some LFC arguments to all runs of this test class. */
/** Adjust target configuration for all runs of this test class. */
protected void applyDefaultConfiguration(TargetConfig config) {
BuildTypeProperty.INSTANCE.override(config, BuildType.TEST);
if (!config.isSet(BuildTypeProperty.INSTANCE)) {
config.set(BuildTypeProperty.INSTANCE, BuildType.TEST);
}
LoggingProperty.INSTANCE.override(config, LogLevel.DEBUG);
}

Expand Down

0 comments on commit a9f60c3

Please sign in to comment.