reportportal / agent-java-junit5

JUnit5 integration for ReportPortal
Apache License 2.0
24 stars 23 forks source link

Agent silently failing to do anything #131

Closed BenManifold closed 3 months ago

BenManifold commented 3 months ago

Describe the bug Logging in debug shows the agent is being resolved, but there's no logging in the tests to indicate it's actually doing anything. It's unclear how to get feedback that might explain why data never actually lands in the report-portal app. Right now my best guess is that using -Drp.enable=true in maven no longer works for enabling the agent.

Steps to Reproduce Steps to reproduce the behavior:

  1. Follow instructions to declare the agent and logging library in pom.xml
  2. Install report portal and setup networking
  3. Run some tests
  4. Despair at the total absence of either launch data or error messages.

Expected behavior A clear error message logged at the error level, explaining why the agent can't do its work.

Actual behavior No error messages and no data.

Dependency versions Include version info of the following libraries: client-java, agent-java-junit5 agent-java-junit5: 5.3.2 client-java: transitive of agent-java-junit5

Additional context Add any other context about the problem here.

BenManifold commented 3 months ago

So it came down to a failure of autodiscovery, running this with the command that runs tests is absolutely mandatory now -Djunit.jupiter.extensions.autodetection.enabled=true

BenManifold commented 3 months ago

So it came down to a failure of autodiscovery, running this with the command that runs tests is absolutely mandatory now -Djunit.jupiter.extensions.autodetection.enabled=true