Skip to content

Commit

Permalink
Add a story for exporting tests into nitrate (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
psss authored Jan 22, 2020
1 parent 9b56cd8 commit 0557bc0
Showing 1 changed file with 45 additions and 3 deletions.
48 changes: 45 additions & 3 deletions stories/cli/test.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,51 @@ story: 'As a user I want to comfortably work with tests'
documented: /docs/examples#convert-tests

/export:
story: 'I want to export test metadata into desired format.'
example: tmt test export --format yaml
implemented: /tmt/base
story: 'I want to export test metadata.'

/format:
story: 'I want to export test metadata into given format.'
example: tmt test export --format yaml
implemented: /tmt/base

/nitrate:
story: 'I want to export test metadata into nitrate.'
example: tmt test export --nitrate
description: |
In order to keep metadata in sync with the old test
case management system we need to export selected set
of attributes back to nitrate. The full fmf object
identifier should be added to the structured field
under the key ``fmf``. A warning should be added to
the structured field informing users that the test
metadata are now maintained in git.

Below is the list of supported ``fmf`` attributes and
corresponding nitrate fields:

* component — components tab
* contact — default tester
* description — purpose-file in the structured field
* duration — estimated time
* enabled — status
* environment — arguments
* path — not synced
* relevancy — relevancy in the structured field
* result — not synced
* summary — description in the structured field
* tag — tags tab
* test — not synced
* tier — tags (e.g. ``1`` synced to the ``Tier1`` tag)

The following attributes, if present, should be
exported as well:

* extra-hardware — hardware in the structured field
* extra-pepa — pepa in the structured field

They have the ``extra`` prefix as they are not part of
the L1 Metadata Specification and are supposed to be
synced temporarily to keep backward compatibility.

/coverage:
story: 'Test coverage overview'
Expand Down

0 comments on commit 0557bc0

Please sign in to comment.