-
Notifications
You must be signed in to change notification settings - Fork 43
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
Support having multiple tests with same TestRail case id #161
Comments
|
So #130 is when you have one JUnit <testcase> entry that maps to multiple TestRail case ID's (one-to-many mapping). The feature I am looking for in this feature request is the other way around: Multiple JUnit <testcase> entries that maps to a single TestRail case ID (many-to-one mapping).
Yes, correct.
Yes, correct. |
I'll second this request; my organization is mapping a backlog of existing automated tests to a backlog of existing manual regression cases, and we've got some scenarios where that mapping is multiple tests to one case (as documented in this issue) and some scenarios where that mapping is one test to multiple cases (as covered by #130). I'm excited for the solution to #130 to be released! But wanted to bump this issue as the other half of what my org would need to allow us to handle all our potential scenarios! Happy to provide more context for those scenarios, if that would help clarify priority. |
What would you like the TestRail CLI to be able to do?
When multiple JUnit tests point to the same TestRail case id I would like TestRail CLI to mark the test as failed if at least one of the tests fail.
Why is this feature necessary on the TestRail CLI?
To support JUnit parameterized tests.
As an example, the following very simple parameterized JUnit test:
`import static org.junit.Assert.assertEquals;import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.ValueSource;
import com.testrail.junit.customjunitxml.annotations.TestRail;
public class SimpleTest {
@ParameterizedTest
@testrail(id = "C1234")
@valuesource(ints = {1, 2})
void isTwo(int number) {
assertEquals(2 , number);
}
}`
Will result in an output with two entries with the same "test_id" property value. The first test fails, while the second succeeds.
Running 'trcli' will mark the test as passed, but the result I have hoped for is that the test is marked as failed (logical AND).
More details
No response
Interested in implementing it yourself?
Yes
The text was updated successfully, but these errors were encountered: