How to debug failed docker runner tests

Hi, evaluating Drone for the first time.
Managed to get the server and the docker runner running no problem!

However, unclear how to to debug this problem:

Given:

a) a simple gradle project which passes tests locally, ie: gradle test passes on a developer machine, and

b) a simple docker runner:

kind: pipeline
type: docker
name: default

steps:
- name: test
  image: gradle:jdk11
  commands:
  - gradle build
  - gradle test

Then:

The tests fail, and it’s unclear how to debug this, given that the test result file is presumably inside the docker runner:

...
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///drone/src/build/reports/tests/test/index.html

...

Suggestions?

David

a simple gradle project which passes tests locally, ie: gradle test passes on a developer machine

We provide a tool that allows you to execute your pipeline locally (e.g. on your laptop) inside a containerized environment that mirrors the Drone environment. See https://docs.drone.io/quickstart/cli/ . This can help more accurately run your pipelines locally to troubleshoot failures.

The tests fail, and it’s unclear how to debug this, given that the test result file is presumably inside the docker runner:

The recommended approach is that you can update your gradle project to write logs to stdout when unit tests fail. See the following StackOverflow thread that addresses this (the answer is generic and should work across CI providers, including Drone)

Alternatively, you can use a plugin to upload your test results (e.g. to S3)

thanks, just curious, where is the file:///data directory?
I sh’d into the server and the runner, but can’t seem to find it?

thanks, just curious, where is the file:///data directory?
I sh’d into the server and the runner, but can’t seem to find it?

can you provide some context? I am not familiar with this directory