A full and growing list of examples can be download from here. Additionally, you could clone the repository with all the examples.
git clone git@github.com:wesovilabs/orion-examples.git
Please feel free to create a Pull Request with new examples
Orion must be installed in your computes. Visti the documentation
- example001: It's a basic scenario with sections
given
,when
andthen
.
orion-cli run --input example001/feature.hcl
- example002: Scenario with multiple
when
,then
sections.
orion-cli run --input example002/feature.hcl
- example003: Scenario without
given
block
orion-cli run --input example003/feature.hcl
- example004: The feature contains multiple scenarios
orion-cli run --input example004/feature.hcl
- feature-vars/feature001.hcl: Basic example of feature with two input variables.
orion-cli run --input feature-vars/feature001.hcl
orion-cli run --input feature-vars/feature001.hcl --vars feature-vars/variables001.hcl
- feature-vars/feature002.hcl: Scenario that sums all the element in a list.
orion-cli run --input feature-vars/feature002.hcl
- feature-vars/feature003.hcl: Scenario that modifies the elements in a list, and it returns a new list.
orion-cli run --input feature-vars/feature003.hcl
- feature-vars/feature004.hcl: Scenario that modifies partially the elements in a list.
orion-cli run --input feature-vars/feature004.hcl
- scenario-functions/feature001.hcl: A couple of scenarios that make use of attribute
examples
.
orion-cli run --input scenario-functions/feature001.hcl
- scenario-examples/feature001.hcl: A couple of scenarios that make use of attribute
examples
.
orion-cli run --input scenario-examples/feature001.hcl
- hooks/feature001.hcl: Feature with global hooks
before each
andafter each
.
orion-cli run --input hooks/feature001.hcl
- hooks/feature002.hcl: Feature with global hooks
before each
andafter each
and hooks for tags
orion-cli run --input hooks/feature002.hcl
- includes/feature001.hcl: A full example of making use of attribute
includes
.
orion-cli run --input includes/feature001.hcl
- ignore_errors/feature001.hcl: The execution of the features continue even though a scenario fails.
orion-cli run --input ignore_errors/feature001.hcl