Skip to content

Commit

Permalink
Merge pull request #11717 from marraes/feature/gradle-integration-tes…
Browse files Browse the repository at this point in the history
…ts-dir

Add gradle integration test dirs in PathTestHelper
  • Loading branch information
gsmet authored Aug 31, 2020
2 parents d0fe9af + 3cb1dd7 commit 9cae703
Showing 1 changed file with 53 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,39 +17,88 @@
*/
public final class PathTestHelper {
private static final Map<String, String> TEST_TO_MAIN_DIR_FRAGMENTS = new HashMap<>();

static {
// eclipse
//region Eclipse
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"bin" + File.separator + "test",
"bin" + File.separator + "main");
// idea
//endregion

//region Idea
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"out" + File.separator + "test",
"out" + File.separator + "production");
// gradle
//endregion

// region Gradle
// region Java
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "native-test",
"classes" + File.separator + "java" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "test",
"classes" + File.separator + "java" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "integration-test",
"classes" + File.separator + "java" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "integrationTest",
"classes" + File.separator + "java" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "native-integrationTest",
"classes" + File.separator + "java" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "java" + File.separator + "native-integration-test",
"classes" + File.separator + "java" + File.separator + "main");
//endregion
//region Kotlin
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "native-test",
"classes" + File.separator + "kotlin" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "test",
"classes" + File.separator + "kotlin" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "integration-test",
"classes" + File.separator + "kotlin" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "integrationTest",
"classes" + File.separator + "kotlin" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "native-integrationTest",
"classes" + File.separator + "kotlin" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "kotlin" + File.separator + "native-integration-test",
"classes" + File.separator + "kotlin" + File.separator + "main");
//endregion
//region Scala
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "native-test",
"classes" + File.separator + "scala" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "test",
"classes" + File.separator + "scala" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "integration-test",
"classes" + File.separator + "scala" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "integrationTest",
"classes" + File.separator + "scala" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "native-integrationTest",
"classes" + File.separator + "scala" + File.separator + "main");
TEST_TO_MAIN_DIR_FRAGMENTS.put(
"classes" + File.separator + "scala" + File.separator + "native-integration-test",
"classes" + File.separator + "scala" + File.separator + "main");
//endregion
//endregion

// maven
//region Maven
TEST_TO_MAIN_DIR_FRAGMENTS.put(
File.separator + "test-classes",
File.separator + "classes");
//endregion
}

private PathTestHelper() {
Expand Down

0 comments on commit 9cae703

Please sign in to comment.