Skip to content

Commit

Permalink
Reports coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Jan 27, 2023
1 parent 2e643bc commit ecd9d60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ import kotlin.system.exitProcess
object JwtGenerator {
@JvmStatic
fun main(args: Array<String>) {
val exitCode = CommandLine(JwtGeneratorCommand()).execute(*args)
val exitCode = runCommand(args)
exitProcess(exitCode)
}

fun runCommand(args: Array<String>) =
CommandLine(JwtGeneratorCommand()).execute(*args)

}
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package org.jesperancinha.fintech

import org.jesperancinha.fintech.JwtGenerator.runCommand
import org.junit.jupiter.api.Test

internal class JwtGeneratorTest {
@Test
fun `should just run`() {

fun `should not run with empty input arguments but also not result in exception`() {
runCommand(arrayOf())
}
}

0 comments on commit ecd9d60

Please sign in to comment.