Skip to content

Commit

Permalink
Fix flag names (kyma-project#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
bszwarc authored Oct 28, 2019
1 parent 5ddbf5a commit 975f31e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/kyma/test/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ To execute all test defintions, run `+"`kyma test run -n example-test`"+`.
}

cobraCmd.Flags().StringVarP(&o.Name, "name", "n", "", "Specifies the name of the new test suite. If you don't specify the value for the `-n` flag, the name of the test suite will be autogenerated.")
cobraCmd.Flags().Int64VarP(&o.ExecutionCount, "count", "c", 1, "Defines how many times every test should be executed. ExecutionCount and MaxRetries flags are mutually exclusive.")
cobraCmd.Flags().Int64VarP(&o.MaxRetries, "max-retries", "", 0, "Defines how many times a given test is retried when it fails. A suite is marked with a succeeded status even if some tests failed at first and then finally succeeded. The default value of 0 means that there are no retries of a given test.")
cobraCmd.Flags().Int64VarP(&o.ExecutionCount, "count", "c", 1, "Defines how many times every test should be executed. \"count\" and \"max-retries\" flags are mutually exclusive.")
cobraCmd.Flags().Int64VarP(&o.MaxRetries, "max-retries", "", 0, "Defines how many times a given test is retried when it fails. A suite is marked with a \"succeeded\" status even if some tests failed at first and then finally succeeded. The default value of 0 means that there are no retries of a given test.")
cobraCmd.Flags().Int64VarP(&o.Concurrency, "concurrency", "", 1, "Specifies the number of tests to be executed in parallel.")
cobraCmd.Flags().Bool("help", false, "Displays help for the command.")
return cobraCmd
Expand Down
4 changes: 2 additions & 2 deletions docs/gen-docs/kyma_test_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ kyma test run <test-definition-1> <test-defintion-2> ... <test-definition-N> [fl

```
--concurrency int Specifies the number of tests to be executed in parallel. (default 1)
-c, --count int Defines how many times every test should be executed. ExecutionCount and MaxRetries flags are mutually exclusive. (default 1)
-c, --count int Defines how many times every test should be executed. "count" and "max-retries" flags are mutually exclusive. (default 1)
-h, --help Displays help for the command.
--max-retries int Defines how many times a given test is retried when it fails. A suite is marked with a succeeded status even if some tests failed and then finally succeeded. The default value of 0 means that there are no retries of a given test.
--max-retries int Defines how many times a given test is retried when it fails. A suite is marked with a "succeeded" status even if some tests failed and then finally succeeded. The default value of 0 means that there are no retries of a given test.
-n, --name -n Specifies the name of the new test suite. If you don't specify the value for the -n flag, the name of the test suite will be autogenerated.
```

Expand Down

0 comments on commit 975f31e

Please sign in to comment.