Skip to content

Commit

Permalink
Disable some CLI test on Windows GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
jedla97 committed Dec 11, 2024
1 parent cb8bfc3 commit bbf9a02
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

import io.quarkus.test.bootstrap.config.QuarkusConfigCommand;
import io.quarkus.test.bootstrap.config.QuarkusSetConfigCommandBuilder.EncryptOption;
Expand All @@ -24,6 +25,7 @@
import io.quarkus.ts.quarkus.cli.config.surefire.SetPropertyTest;

@DisabledOnQuarkusVersion(version = "3\\.(9|10|11|12)\\..*", reason = "https://github.com/quarkusio/quarkus/pull/41203 merged in 3.13")
@DisabledIfSystemProperty(named = "gh-action-disable-on-win", matches = "true", disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
@TestMethodOrder(MethodOrderer.OrderAnnotation.class) // remember, this is stateful test as well as stateful cmd builder
@Tag("QUARKUS-3456")
@Tag("quarkus-cli")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.junit.jupiter.api.condition.OS;
Expand Down Expand Up @@ -46,16 +47,19 @@ public void shouldCreateApplicationOnJvmWithSpecialChars() {
}

@Test
@DisabledIfSystemProperty(named = "gh-action-disable-on-win", matches = "true", disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithDiacritics() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_DIACRITICS);
}

@Test
@DisabledIfSystemProperty(named = "gh-action-disable-on-win", matches = "true", disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithJapanese() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_JAPANESE);
}

@Test
@DisabledIfSystemProperty(named = "gh-action-disable-on-win", matches = "true", disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public void shouldCreateApplicationOnJvmWithInternationalization() {
assertCreateJavaApplicationAtFolder(FOLDER_WITH_INTERNATIONALIZATION);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import jakarta.inject.Inject;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

import io.quarkus.test.junit.QuarkusTest;
import io.smallrye.config.SmallRyeConfig;
Expand All @@ -18,6 +19,7 @@
* This test is only support to run inside QuarkusCliConfigSetIT.
*/
@QuarkusTest
@DisabledIfSystemProperty(named = "gh-action-disable-on-win", matches = "true", disabledReason = "Some windows don't have all language pack/locales so it causing it fail")
public class SetPropertyTest {

@Inject
Expand Down

0 comments on commit bbf9a02

Please sign in to comment.