Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
82 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
Metadata Specification | ||
====================== | ||
|
||
This is Metadata Specification which defines that all data needed | ||
for test execution in the CI system are stored as a plain text | ||
information in Flexible Metadata Format under version control in | ||
the git repository close to the test code or source code. FMF uses | ||
YAML to store data in a concise human and machine readable way | ||
plus adds a few nice features like virtual hierarchy, inheritance | ||
and elasticity to minimize data duplication and maintenance. There | ||
are two levels of metadata defined: | ||
|
||
**L1 Metadata** | ||
|
||
These are test metadata closely related to individual test cases | ||
for which it make sense to store them directly with the test code. | ||
Examples of such metadata are summary, description, duration or | ||
tags. See Level 1 Metadata section for more detailed information | ||
and list of already defined attributes. | ||
|
||
**L2 Metadata** | ||
|
||
These metadata contain information for execution of multiple test | ||
cases such as how the environment for testing should be prepared, | ||
which set of test cases is relevant for testing specific artifact | ||
or which frameworks should be used for execution. See Level 2 | ||
Metadata section for detailed specification. | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
specs/l1 | ||
specs/l2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
story: | ||
As a tester I want to store test metadata close to the test | ||
source code. | ||
description: | ||
These are test metadata closely related to individual test | ||
cases for which it make sense to store them directly with the | ||
test code. Examples of such metadata are summary, description, | ||
duration or tags. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
summary: Shell command which executes the test | ||
|
||
story: | ||
As a test writer I want to run a single test script in | ||
multiple ways (e.g. by providing different parameters). | ||
|
||
description: | ||
This attribute defines how the test is to be executed. | ||
|
||
examples: | | ||
test: ./test.sh | ||
test: ./test.sh --depth 1000 | ||
test: pytest -k performance | ||
test: make run | ||
|
||
type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
story: | ||
As a tester I want to group tests and specify environment for | ||
testing. | ||
|
||
description: | ||
These metadata contain information for execution of multiple | ||
test cases such as how the environment for testing should be | ||
prepared, which set of test cases is relevant for testing | ||
specific artifact or which frameworks should be used for | ||
execution. |