Logo: Relish

  1. Sign in

Project: Cio 0.0.0

Version

In order to understand clean Cio install behaviour
As a user of Cio
I want to have documented expected cli output

Scenarios
Using any option
Given
I successfully run cio version option
Then
the stderr should not contain anything
And
the stdout should contain the installed version
Examples:
option
-v
-q
-l
Using the --quiet option
Given
I successfully run cio version -q
Then
the stderr should not contain anything
And
the stdout should contain the installed version
And
the stdout should contain "Log level quiet"
Using the --loud option
Given
I successfully run cio version -l
Then
the stderr should not contain anything
And
the stdout should contain the installed version
And
the stdout should contain "Log level loud"
Using the --quiet and --loud options
Given
I successfully run cio version -q -l
Then
the stderr should not contain anything
And
the stdout should contain the installed version
And
the stdout should contain "Log level loud"
Using the --quiet and --raise options
Given
I run cio version -q -r xyz
Then
the stderr should contain "xyz"
And
the stdout should contain:
---
Log level quiet
Start task api: version
Cio caught exception: xyz
      exception type: Exception
Using the --loud and --raise options
Given
I run cio version -l -r abc
Then
the stderr should contain "abc"
And
the stdout should contain:
---
Log level loud
Start task api: version
Notify observers true
Cio caught exception: abc
      exception type: Exception

Last published about 5 years ago by taqtiqa-mark.