Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmt tests export --nitrate: Allow case creation #117

Closed
lukaszachy opened this issue Feb 21, 2020 · 5 comments
Closed

tmt tests export --nitrate: Allow case creation #117

lukaszachy opened this issue Feb 21, 2020 · 5 comments
Assignees
Labels
command | export The export command command | tests tmt tests command

Comments

@lukaszachy
Copy link
Collaborator

When I am writing new test, I want to be able specify everything using tmt/fmf and let tmt create the test case on nitrate server.

Otherwise for new test I would need to manually (or by other tool) create some test case, and either manually create the tcms attribute in fmf file, or let the tmt tests convert import it.

@lukaszachy
Copy link
Collaborator Author

@psss What are you thoughts about this? Might be handy for adoption.

@psss
Copy link
Collaborator

psss commented Mar 4, 2020

Agreed, this might be handy during the transition period when we still need nitrate test cases. The tmt test export seems the best place. It could be something like this:

tmt test export --format nitrate --create

@psss psss added command | export The export command command | tests tmt tests command labels Mar 4, 2020
@hegerj
Copy link
Collaborator

hegerj commented Mar 9, 2020

@psss How can I determine which file defines test case (in order to write to it newly created extra-nitrate id).

@psss
Copy link
Collaborator

psss commented Mar 10, 2020

Each fmf node object keeps the list of files from which metadata has been constructed in sources. If I remember correctly, the order should follow the inherit steps so the last item from the list should be your friend :)

@psss psss assigned hegerj and unassigned psss Mar 30, 2020
hegerj added a commit that referenced this issue Apr 1, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Added option --create which will create testcase in nitrate if it
doesn't exist.
Implements #117.
psss pushed a commit that referenced this issue Apr 3, 2020
Added option --create which will create testcase in nitrate if it
doesn't exist.
Implements #117.
@psss
Copy link
Collaborator

psss commented Apr 3, 2020

Implemented by #185.

@psss psss closed this as completed Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command | export The export command command | tests tmt tests command
Projects
None yet
Development

No branches or pull requests

3 participants