Provide a JUnit5 extension that allows annotating a test class and upload its test results to a Xray instance.
Follow a more or less similar approach perhaps like the one provided by Playwright
Needs refinement! And is it worth the effort?!
To think of:
- options to support
- how to deal with parallel test execution
- how to deal with multiple classes being executed
`
@UploadToXray
class SomeTests {
@test
void dummyTest1() {
}
}`
`
@UploadToXray(SomeTests.CustomOptions.class)
public class SomeTests {
public static class CustomOptions implements OptionsFactory {
@OverRide
public Options getOptions() {
return new Options()
.setCloud(true)
.setClientId("xxx")
.setClientSecret("xxx")
.setProjectKey("CALC");
}
}
@test
void dummyTest1() {
}
}
`
Provide a JUnit5 extension that allows annotating a test class and upload its test results to a Xray instance.
Follow a more or less similar approach perhaps like the one provided by Playwright
Needs refinement! And is it worth the effort?!
To think of:
`
@UploadToXray
class SomeTests {
@test
void dummyTest1() {
}
}`
`
@UploadToXray(SomeTests.CustomOptions.class)
public class SomeTests {
public static class CustomOptions implements OptionsFactory {
@OverRide
public Options getOptions() {
return new Options()
.setCloud(true)
.setClientId("xxx")
.setClientSecret("xxx")
.setProjectKey("CALC");
}
}
@test
void dummyTest1() {
}
}
`