TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How can I debug CI tests?

1 pointsby ismailegilmezalmost 4 years ago
How can debug my unit tests in GitLab? I want to be able to instantly see the route cause of the error. Is it possible to instrument tests with APM agents to see traces?

1 comment

dnsmichialmost 4 years ago
Hi, do you have a concrete example of your unit tests &#x2F; code in a repository, and how you execute them in your CI&#x2F;CD pipeline?<p>&gt; I want to be able to instantly see the route cause of the error.<p>If you&#x27;re using JUnit test reports to collect the failed tests, I&#x27;d recommend adjusting the unit tests themselves and their failure output. Happy to help with code suggestions, if I know the language.<p><a href="https:&#x2F;&#x2F;docs.gitlab.com&#x2F;ee&#x2F;ci&#x2F;unit_test_reports.html" rel="nofollow">https:&#x2F;&#x2F;docs.gitlab.com&#x2F;ee&#x2F;ci&#x2F;unit_test_reports.html</a><p>You can see the failed jobs directly in the MR, similar to the screenshot in this presentation: <a href="https:&#x2F;&#x2F;docs.google.com&#x2F;presentation&#x2F;d&#x2F;1jZYHIXjL6CDBQVblDvxUvBFl8Gbz4LTx5yCx-iwRsqg&#x2F;edit#slide=id.g8e03e42a86_0_5" rel="nofollow">https:&#x2F;&#x2F;docs.google.com&#x2F;presentation&#x2F;d&#x2F;1jZYHIXjL6CDBQVblDvxU...</a><p>&gt; Is it possible to instrument tests with APM agents to see traces?<p>I&#x27;m not sure how traces with spans, context and start&#x2F;end time could help. You&#x27;re probably looking more into raw job logs and their output. Can you elaborate a bit more on this idea?