This message was deleted.
# community-support
s
This message was deleted.
v
Maybe it would make sense to implement your custom tests as JUnit 5 platform engine, then any tool supporting JUnit 5 will automatically support your custom tests.
r
My goal is to have tests being reported nicely in Gradle Scan.
I can make my test tools output JUnit reports or parse their JSON raw output.
I'm making some experiments using
org.gradle.api.reporting.Reporting
, but documentation is close to zero.
v
My recommendation stands
Afaik there is currently no way for a custom test framework that Gradle would then treat like tests.
Reporting
is something different. Use a custom JUnit 5 Platform Engine, and if just for translating your existing output in a way tools will recognize.
r
Front-end tests don't run in JUnit platform. They can only output JUnit format XML reports.
v
They could run in JUnit platform just fine, if there were an engine supporting them. But as I said, you can also run them separately and then just have an engine that only translates the output provided.
r
I'm trying to make that translation engine, but documentation is close to zero.
v
It's been a while since I played with it, but afair you just have to implement the
org.junit.platform.engine.TestEngine
interface and follow the JavaDocs.
Maybe this blog or some other you might find via Google can help too: https://blogs.oracle.com/javamagazine/post/junit-build-custom-test-engines-java