Skip to content

Docs feedback: fix report path in JUnit test reports example for gradle

Problem

The example for importing JUnit test reports for Gradle uses a ** glob to purportedly upload reports in the build/test-results/test and all nested directories. However, as gitlab-runner does not support ** globs the example is actually equivalent to build/test-results/test/*/TEST-*.xml which only works for single-nested subdirectories.

The documentation should be changed to reflect this.

Proposed solutions

  • either have two examples (one without subdirectories, one single-nested)
  • one example with two paths to catch both cases
  • implementing gitlab-runner#2620 (closed) to support ** patterns and resolve this issue