-
Notifications
You must be signed in to change notification settings - Fork 20
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
Using the @title token for polarion test case title #65
Comments
Can you please explain the use case by showing the command that you are trying to use? |
Well, I hadn't actually started running it for this particular query yet. Here's an example though:
Then I run this:
I'm looking for a way to tell betelgeuse to use "Test Case 0001" for the test case title in polarion instead of test_case_0001. So, I was thinking something like:
|
I think a good solution would be to add an option that allows you specify a polarion field to be mapped to the first line of the docstring. This way we have the flexibility of defining what to map for the first line. Worth mention that it will only grab the first line not the first paragraph. On the Betelgeuse code this will be checked before assigning any token, so if the field is present on the docstring as a token it will be overridden. |
That would work. And like you said would allow more flexibility since I think some people use Description similar to how my team uses Title. One thing, though. I thought testimony used the first line of docstring as Test now. Are you suggesting that change too? |
Short answer, yes. Long answer, Testimony currently does use the first line as test, but a new option should be added to it since one may not pass the |
I've opened SatelliteQE/testimony#118 to fix on testimony and then bring to Betelgeuse |
In order to follow all other token definitions Betelgeuse should support a |
Use the value of `@title` token for the test case title when it is defined on the docstring, otherwise continue using the function/method name. Close #65
Thanks guys! |
@spoore1 thank you for the feature request, it is good to have control over the title. |
Can we have the option (via command line arg) to use the test case Test token for the polarion test case title on import?
I would like to use this instead of using the python module, class, method/function names.
The text was updated successfully, but these errors were encountered: