Skip to content

JUnit5 extension to upload the results to Xray #74

Description

@bitcoder

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() {
}

}
`

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions