Skip to content

Commit

Permalink
chore: refactor code and add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarAlJarrah committed Aug 19, 2024
1 parent b2d67cf commit c833deb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sdk-test/src/main/kotlin/com/expediagroup/sdk/test/CLI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ package com.expediagroup.sdk.test

import com.expediagroup.sdk.test.contract.ContractTestsGenerator
import com.expediagroup.sdk.test.contract.MAX_TEST_REQUEST_PER_SCENARIO
import com.expediagroup.sdk.test.contract.model.api.TestCaseApiCall
import com.expediagroup.sdk.test.openapi.SdkTestGenerator
import com.expediagroup.sdk.test.util.toBoolean
import com.github.rvesse.airline.SingleCommand
Expand Down Expand Up @@ -58,6 +57,9 @@ class CLI {
@Option(name = ["-s", "--generate-sdk-tests"])
private var generateSdkTests = false

@Option(name = ["-t", "--templates-dir"])
private var templatesDir: File = File("src/main/resources/templates/expediagroup-sdk")

private lateinit var sdkTestGenerator: SdkTestGenerator

private lateinit var contractTestsGenerator: ContractTestsGenerator
Expand Down Expand Up @@ -97,7 +99,8 @@ class CLI {
namespace = namespace,
spec = spec,
version = version,
testCases = testCases
testCases = testCases,
templatesDir = templatesDir,
).also { it.generate() }
}
}
Expand Down

0 comments on commit c833deb

Please sign in to comment.