# Why is the test button red?

**URL:** https://discourse.julialang.org/t/why-is-the-test-button-red/104474
**Category:** General Usage
**Tags:** question
**Created:** [October 1, 2023, 6:47pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474 "2023-10-01T18:47:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 1, 2023, 6:47pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/1 "2023-10-01T18:47:53Z")

</div>

If you look here: [GitHub - JuliaGraphics/QML.jl: Build Qt6 QML interfaces for Julia programs.](https://github.com/JuliaGraphics/QML.jl)

It says “test failing”. But if you click on the button you can see that the tests are not failing.

What is going on here?

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [October 1, 2023, 6:54pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/2 "2023-10-01T18:54:02Z")

</div>

Strange. Can you try re-generating the Markdown code for the badge?

The steps look roughly like this:

1. Go to [your repo](https://github.com/JuliaGraphics/QML.jl)
2. Click on the [“Actions” tab](https://github.com/JuliaGraphics/QML.jl/actions)
3. Select the [`test.yml` workflow](https://github.com/JuliaGraphics/QML.jl/actions/workflows/test.yml)
4. Click the “…” button in the top-right corner, and then click on “Create Status Badge”.

Then try copying the Markdown from there, and see if that badge looks correct.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 1, 2023, 7:01pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/3 "2023-10-01T19:01:16Z")

</div>

This helped. Correct link:  
`https://github.com/JuliaGraphics/QML.jl/actions/workflows/test.yml/badge.svg`

The word `actions` was missing.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 1, 2023, 7:04pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/4 "2023-10-01T19:04:29Z")

</div>

Do you also have an idea how to fix the ‘Code coverage’ button?

---

<div class="post-metadata">

### Author: ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)
#### Post date: [October 1, 2023, 7:06pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/5 "2023-10-01T19:06:31Z")

</div>

Looks like, at some point in the past, you renamed your repo’s default branch from `master` to `main`?

First thing I’d try for the CodeCov badge is to change the branch name in the URL.

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [October 1, 2023, 7:11pm UTC](https://discourse.julialang.org/t/why-is-the-test-button-red/104474/6 "2023-10-01T19:11:37Z")

</div>

You are a genius!
