There's no API to register and get tests. The surefire plugin defines its own XML format to inject data measures.
The new Java API should support :
- declaration of unit/integration tests during project scanning
- test metadata: duration time, status (pass/failed/skipped), name
- relations between covered main code and tests (see
- requests from server-side extensions