Skip to content

Commit

Permalink
Created another task for kotlin with no infer types
Browse files Browse the repository at this point in the history
  • Loading branch information
cepages committed Aug 11, 2024
1 parent af20af7 commit c3ed5dc
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,17 @@ task :test_kotlin do
end
end

desc "Generates Swift source code and run its unit tests with false should infer types."
task :test_swift_no_infer_types do
config_file = File.absolute_path("spec/fixtures/swift-tests_with_no_infer_types.yml")
desc "Generates Kotlin source code and run its unit tests with no infer types."
task :test_kotlin_with_no_infer_types do
config_file = File.absolute_path("spec/fixtures/kotlin-tests_with_no_infer_types.yml")
dotenv_file = File.absolute_path("spec/fixtures/.env.fruitloops")
directory_to_copy = File.absolute_path("spec/fixtures/kotlin")
with_temp_dir do |temp_dir|
puts "Current working directory: #{temp_dir}"
sh("ARKANA_RUNNING_CI_INTEGRATION_TESTS=true arkana --config-filepath #{config_file} --dotenv-filepath #{dotenv_file} --include-environments dev,staging")
Dir.chdir("tests/MySecrets")
sh("swift test")
FileUtils.copy_entry(directory_to_copy, "tests")
sh("ARKANA_RUNNING_CI_INTEGRATION_TESTS=true arkana --lang kotlin --config-filepath #{config_file} --dotenv-filepath #{dotenv_file} --include-environments dev,staging")
Dir.chdir("tests")
sh("./gradlew test")
end
end

Expand Down
32 changes: 32 additions & 0 deletions spec/fixtures/kotlin-tests_with_no_infer_types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace: 'MySecrets'
result_path: 'tests'
should_generate_unit_tests: true
should_generate_gradle_build_file: false
global_secrets:
- BoolAsStringTrueKey
- BoolAsStringFalseKey
- BoolAsBoolTrueKey
- BoolAsBoolFalseKey
- IntAsStringKey
- IntAsNumberKey
- IntWithLeadingZeroesAsStringKey
- IntWithLeadingZeroesAsNumberKey
- MassiveIntAsStringKey
- MassiveIntAsNumberKey
- NegativeIntAsStringKey
- NegativeIntAsNumberKey
- FloatAsStringKey
- FloatAsNumberKey
- SecretWithDollarSignEscapedAndAndNoQuotesKey
- SecretWithDollarSignEscapedAndDoubleQuoteKey
- SecretWithDollarSignNotEscapedAndSingleQuoteKey
- SecretWithDollarSignNotEscapedAndDoubleQuotesKey
- SecretWithDollarSignNotEscapedAndNoQuotesKey
- SecretWithWeirdCharactersKey
environments:
- dev
- staging
- prod
environment_secrets:
- ServiceKey
- Server

0 comments on commit c3ed5dc

Please sign in to comment.