diff --git a/README.md b/README.md index ee86293..6689f91 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Define tests in a YAML file like show above, and run emberfall: `emberfall --con uses: "aquia-inc/emberfall@main" with: - version: 0.1.0 + version: 0.2.0 config: | --- tests: diff --git a/cmd/root.go b/cmd/root.go index f73aa14..92aa045 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -16,8 +16,9 @@ import ( var configPath string var rootCmd = &cobra.Command{ - Use: "emberfall", - Short: "Declarative API Testing", + Use: "emberfall", + Short: "Declarative API Testing", + Version: "0.2.0", Run: func(cmd *cobra.Command, args []string) { configPath = strings.TrimSpace(configPath) conf, err := engine.LoadConfig(configPath) diff --git a/tests/cli.bats b/tests/cli.bats index 646166d..ec7a06c 100644 --- a/tests/cli.bats +++ b/tests/cli.bats @@ -4,6 +4,12 @@ setup() { bats_load_library bats-assert } +@test "--version should be correct" { + run ./emberfall --version + assert_success + assert_output "emberfall version 0.2.0" +} + @test "no config SHOULD FAIL" { run ./emberfall assert_failure