-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
5,045 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
disabled_rules = no-wildcard-imports, filename, import-ordering | ||
|
||
[{*.kt,*.kts}] | ||
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL | ||
ij_continuation_indent_size = 2 | ||
max_line_length = 140 | ||
ij_kotlin_name_count_to_use_star_import = 999 | ||
ij_kotlin_name_count_to_use_star_import_for_members = 999 | ||
ij_kotlin_packages_to_use_import_on_demand = unset | ||
ij_kotlin_align_in_columns_case_branch = false | ||
ij_kotlin_align_multiline_binary_operation = false | ||
ij_kotlin_align_multiline_extends_list = false | ||
ij_kotlin_align_multiline_method_parentheses = false | ||
ij_kotlin_align_multiline_parameters = true | ||
ij_kotlin_align_multiline_parameters_in_calls = false | ||
ij_kotlin_allow_trailing_comma = true | ||
ij_kotlin_allow_trailing_comma_on_call_site = false | ||
ij_kotlin_assignment_wrap = normal | ||
ij_kotlin_blank_lines_after_class_header = 0 | ||
ij_kotlin_blank_lines_around_block_when_branches = 0 | ||
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1 | ||
ij_kotlin_block_comment_at_first_column = true | ||
ij_kotlin_call_parameters_new_line_after_left_paren = true | ||
ij_kotlin_call_parameters_right_paren_on_new_line = true | ||
ij_kotlin_call_parameters_wrap = on_every_item | ||
ij_kotlin_catch_on_new_line = false | ||
ij_kotlin_class_annotation_wrap = split_into_lines | ||
ij_kotlin_continuation_indent_for_chained_calls = true | ||
ij_kotlin_continuation_indent_for_expression_bodies = false | ||
ij_kotlin_continuation_indent_in_argument_lists = false | ||
ij_kotlin_continuation_indent_in_elvis = true | ||
ij_kotlin_continuation_indent_in_if_conditions = true | ||
ij_kotlin_continuation_indent_in_parameter_lists = false | ||
ij_kotlin_continuation_indent_in_supertype_lists = true | ||
ij_kotlin_else_on_new_line = false | ||
ij_kotlin_enum_constants_wrap = split_into_lines | ||
ij_kotlin_extends_list_wrap = on_every_item | ||
ij_kotlin_field_annotation_wrap = normal | ||
ij_kotlin_finally_on_new_line = false | ||
ij_kotlin_if_rparen_on_new_line = true | ||
ij_kotlin_import_nested_classes = true | ||
ij_kotlin_imports_layout = *, kotlin.**, ^ | ||
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true | ||
ij_kotlin_keep_blank_lines_before_right_brace = 0 | ||
ij_kotlin_keep_blank_lines_in_code = 1 | ||
ij_kotlin_keep_blank_lines_in_declarations = 1 | ||
ij_kotlin_keep_first_column_comment = true | ||
ij_kotlin_keep_indents_on_empty_lines = false | ||
ij_kotlin_keep_line_breaks = true | ||
ij_kotlin_lbrace_on_next_line = false | ||
ij_kotlin_line_comment_add_space = true | ||
ij_kotlin_line_comment_at_first_column = false | ||
ij_kotlin_method_annotation_wrap = normal | ||
ij_kotlin_method_call_chain_wrap = on_every_item | ||
ij_kotlin_method_parameters_new_line_after_left_paren = true | ||
ij_kotlin_method_parameters_right_paren_on_new_line = true | ||
ij_kotlin_method_parameters_wrap = split_into_lines | ||
ij_kotlin_parameter_annotation_wrap = off | ||
ij_kotlin_space_after_comma = true | ||
ij_kotlin_space_after_extend_colon = true | ||
ij_kotlin_space_after_type_colon = true | ||
ij_kotlin_space_before_catch_parentheses = true | ||
ij_kotlin_space_before_comma = false | ||
ij_kotlin_space_before_extend_colon = true | ||
ij_kotlin_space_before_for_parentheses = true | ||
ij_kotlin_space_before_if_parentheses = true | ||
ij_kotlin_space_before_lambda_arrow = true | ||
ij_kotlin_space_before_type_colon = false | ||
ij_kotlin_space_before_when_parentheses = true | ||
ij_kotlin_space_before_while_parentheses = true | ||
ij_kotlin_spaces_around_additive_operators = true | ||
ij_kotlin_spaces_around_assignment_operators = true | ||
ij_kotlin_spaces_around_equality_operators = true | ||
ij_kotlin_spaces_around_function_type_arrow = true | ||
ij_kotlin_spaces_around_logical_operators = true | ||
ij_kotlin_spaces_around_multiplicative_operators = true | ||
ij_kotlin_spaces_around_range = false | ||
ij_kotlin_spaces_around_relational_operators = true | ||
ij_kotlin_spaces_around_unary_operator = false | ||
ij_kotlin_spaces_around_when_arrow = true | ||
ij_kotlin_variable_annotation_wrap = off | ||
ij_kotlin_while_on_new_line = false | ||
ij_kotlin_wrap_elvis_expressions = 1 | ||
ij_kotlin_wrap_expression_body_functions = 1 | ||
ij_kotlin_wrap_first_method_in_call_chain = false | ||
|
||
[{project/api/src/test/**.kt,project/api/src/test/**.kts}] | ||
max_line_length = 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "gradle" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "daily" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Install Java and Maven | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 16 | ||
distribution: 'temurin' | ||
|
||
- name: Check out Git repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Gradle Build | ||
run: | | ||
./gradlew build -x test | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# files: ./build/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml | ||
# flags: unittests | ||
# name: codecov-umbrella | ||
# fail_ci_if_error: true | ||
# verbose: true | ||
# java-version: 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Publish to Maven | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '16' | ||
distribution: 'temurin' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Publish to Maven Repository | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: publish | ||
env: | ||
gpg_private_key: ${{ secrets.gpg_private_key }} | ||
gpg_passphrase: ${{ secrets.gpg_passphrase }} | ||
nexus_username: ${{ secrets.nexus_username }} | ||
nexus_password: ${{ secrets.nexus_password }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
.DS_Store | ||
/.idea | ||
.idea/shelf | ||
/confluence/target | ||
/dependencies/repo | ||
/android.tests.dependencies | ||
/dependencies/android.tests.dependencies | ||
/dist | ||
/local | ||
/gh-pages | ||
/ideaSDK | ||
/clionSDK | ||
/android-studio/sdk | ||
out/ | ||
/tmp | ||
/intellij | ||
workspace.xml | ||
*.versionsBackup | ||
/idea/testData/debugger/tinyApp/classes* | ||
/jps-plugin/testData/kannotator | ||
/js/js.translator/testData/out/ | ||
/js/js.translator/testData/out-min/ | ||
/js/js.translator/testData/out-pir/ | ||
.gradle/ | ||
build/ | ||
!**/src/**/build | ||
!**/test/**/build | ||
*.iml | ||
!**/testData/**/*.iml | ||
.idea/remote-targets.xml | ||
.idea/libraries/Gradle*.xml | ||
.idea/libraries/Maven*.xml | ||
.idea/artifacts/PILL_*.xml | ||
.idea/artifacts/KotlinPlugin.xml | ||
.idea/modules | ||
.idea/runConfigurations/JPS_*.xml | ||
.idea/runConfigurations/PILL_*.xml | ||
.idea/runConfigurations/_FP_*.xml | ||
.idea/runConfigurations/_MT_*.xml | ||
.idea/libraries | ||
.idea/modules.xml | ||
.idea/gradle.xml | ||
.idea/compiler.xml | ||
.idea/inspectionProfiles/profiles_settings.xml | ||
.idea/.name | ||
.idea/artifacts/dist_auto_* | ||
.idea/artifacts/dist.xml | ||
.idea/artifacts/ideaPlugin.xml | ||
.idea/artifacts/kotlinc.xml | ||
.idea/artifacts/kotlin_compiler_jar.xml | ||
.idea/artifacts/kotlin_plugin_jar.xml | ||
.idea/artifacts/kotlin_jps_plugin_jar.xml | ||
.idea/artifacts/kotlin_daemon_client_jar.xml | ||
.idea/artifacts/kotlin_imports_dumper_compiler_plugin_jar.xml | ||
.idea/artifacts/kotlin_main_kts_jar.xml | ||
.idea/artifacts/kotlin_compiler_client_embeddable_jar.xml | ||
.idea/artifacts/kotlin_reflect_jar.xml | ||
.idea/artifacts/kotlin_stdlib_js_ir_* | ||
.idea/artifacts/kotlin_test_js_ir_* | ||
.idea/artifacts/kotlin_stdlib_wasm_* | ||
.idea/artifacts/kotlinx_atomicfu_runtime_* | ||
.idea/artifacts/kotlinx_cli_jvm_* | ||
.idea/jarRepositories.xml | ||
.idea/csv-plugin.xml | ||
.idea/libraries-with-intellij-classes.xml | ||
.idea/misc.xml | ||
.idea/** | ||
node_modules/ | ||
.rpt2_cache/ | ||
libraries/tools/kotlin-test-js-runner/lib/ | ||
local.properties | ||
buildSrcTmp/ | ||
distTmp/ | ||
outTmp/ | ||
/test.output | ||
/kotlin-native/dist | ||
kotlin-ide/ | ||
|
||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
|
||
# Ignore Gradle build output directory | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
# stove4k | ||
Stove: The easiest way of e2e testing in Kotlin | ||
|
||
[Check the documentation](/docs/how-to) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@file:Suppress("UnstableApiUsage", "DSL_SCOPE_VIOLATION") | ||
|
||
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask | ||
|
||
group = "com.trendyol" | ||
version = "0.0.7-SNAPSHOT" | ||
|
||
plugins { | ||
kotlin("jvm").version(libs.versions.kotlin) | ||
alias(libs.plugins.dokka) | ||
alias(libs.plugins.ktlint) | ||
id("publishing") | ||
id("coverage") | ||
java | ||
} | ||
|
||
allprojects { | ||
extra.set("dokka.outputDirectory", rootDir.resolve("docs")) | ||
} | ||
|
||
subprojectsOf("lib", "spring") { | ||
apply { | ||
plugin("kotlin") | ||
plugin("publishing") | ||
plugin("java") | ||
plugin(rootProject.libs.plugins.ktlint.get().pluginId) | ||
plugin(rootProject.libs.plugins.dokka.get().pluginId) | ||
} | ||
|
||
java { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
|
||
val testImplementation by configurations | ||
val libs = rootProject.libs | ||
val testLibs = rootProject.testLibs | ||
|
||
dependencies { | ||
api(libs.arrow.core) | ||
} | ||
|
||
dependencies { | ||
testImplementation(kotlin("test")) | ||
testImplementation(testLibs.kotest.runner.junit5) | ||
testImplementation(testLibs.kotest.framework.api.jvm) | ||
testImplementation(testLibs.kotest.property.jvm) | ||
} | ||
|
||
this.tasks { | ||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { | ||
kotlinOptions.jvmTarget = "16" | ||
kotlinOptions.allWarningsAsErrors = true | ||
} | ||
} | ||
} | ||
|
||
tasks.withType<DokkaMultiModuleTask>().configureEach { | ||
outputDirectory.set(file(rootDir.resolve("docs/dokka"))) | ||
} | ||
|
||
fun subprojectsOf( | ||
vararg parentProjects: String, | ||
action: Action<Project>, | ||
): Unit = subprojects.filter { parentProjects.contains(it.parent?.name) }.forEach { action(it) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { `kotlin-dsl` } | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
gradlePluginPortal() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
plugins { | ||
base | ||
`jacoco-report-aggregation` | ||
`test-report-aggregation` | ||
} | ||
|
||
dependencies { | ||
jacocoAggregation(project(":lib:stove-testing-e2e")) | ||
jacocoAggregation(project(":lib:stove-testing-e2e-couchbase")) | ||
jacocoAggregation(project(":lib:stove-testing-e2e-http")) | ||
jacocoAggregation(project(":lib:stove-testing-e2e-kafka")) | ||
jacocoAggregation(project(":lib:stove-testing-e2e-wiremock")) | ||
jacocoAggregation(project(":starters:spring:stove-spring-testing-e2e")) | ||
jacocoAggregation(project(":starters:spring:stove-spring-testing-e2e-kafka")) | ||
} |
Oops, something went wrong.