# Acceptance tests failing on Github Actions

**URL:** https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355
**Category:** Development
**Created:** [November 22, 2023, 6:46pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355 "2023-11-22T18:46:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pirhoo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pirhoo/32/527677_2.png) [@pirhoo](https://meta.discourse.org/u/pirhoo)
#### Post date: [November 22, 2023, 6:46pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/1 "2023-11-22T18:46:46Z")

</div>

Hello Discourse community 👋

I’m setting up a new plugin based on the [skeleton](https://github.com/discourse/discourse-plugin-skeleton/tree/main/assets) you provided which already helped me a lot.

I am now writing tests, both for the frontend and the backend. Everything works as expected in Discourse dev environment, including acceptance tests which work like a charm.

My workflow file is as simple as:

```yml
name: Discourse Projects Plugin - CI

on:
  push:
    branches: [main]

jobs:
  discourse:
    uses: discourse/.github/.github/workflows/discourse-plugin.yml@v1

```

But when I try to run the workflow on Github Actions, I’m getting a curious error in the `frontend_tests / Plugin QUnit` step:

```plaintext
Built project successfully. Stored in "/tmp/tests-dist-20231022-6082-zjfckn.1g5q".
not ok 1 Chrome 119.0 - [180 ms] - global failure
    ---
        stack: >
            Error: No tests were run.
                at done (http://localhost:7357/assets/chunk.74084cb2759545d0c671.js:108653:17)
                at advanceTestQueue (http://localhost:7357/assets/chunk.74084cb2759545d0c671.js:108565:7)
                at Object.advance (http://localhost:7357/assets/chunk.74084cb2759545d0c671.js:108520:7)
                at unblockAndAdvanceQueue (http://localhost:7357/assets/chunk.74084cb2759545d0c671.js:110490:21)
        message: >
            No tests were run.
        negative: >
            false
        browser log: |
            {"type":"log","text":"ℹ️ Ember v3.28.12"}
    ...
Out of requested 1 browser(s), 1 browser(s) was launched & completed.
All browsers to exited.
Used JS Heap Size: 0.073GB

```

Apart from that, I don’t get any details, even when running the workflow again with debug logging. All other steps in the workflow are done correctly (linters, rspec, etc).

So my questions are simple:

- is the free Github runner enough to run acceptance step?
- any clue how I can troubleshoot this?

I’m certain I’m doing something wrong somewhere but I’ve no idea where to start looking.

Thanks for your help and all the work done on Discourse!

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [November 23, 2023, 8:21pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/2 "2023-11-23T20:21:02Z")

</div>

Hello Pierre! We agree that the developer experience can be better in some aspects and I am trying to figure out how did you come across this problem and what we can do to help you and future developers have a more pleasant experience.

> [@pirhoo](#):
>
> including acceptance tests which work like a charm

How do you run the acceptance tests locally?

> [@pirhoo](#):
>
> `Error: No tests were run.`

Have you defined any tests in the `test/javascripts` directory?

---

<div class="post-metadata">

### Author: ![pirhoo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pirhoo/32/527677_2.png) [@pirhoo](https://meta.discourse.org/u/pirhoo)
#### Post date: [November 24, 2023, 12:27pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/3 "2023-11-24T12:27:05Z")

</div>

Hi @nbianca, thanks for your answer!

I run the acceptance tests locally through the Qunit page on `http://localhost:4200/tests`:

 ![Screenshot 2023-11-24 at 13-22-25 Projects - QUnit Discourse Tests](https://global.discourse-cdn.com/meta/original/4X/6/e/3/6e32c63c3376f8daaf9c70aba667e709abbd1f70.png)

As you can see, they are a few tests already in `test/javascripts`.

---

<div class="post-metadata">

### Author: ![pirhoo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pirhoo/32/527677_2.png) [@pirhoo](https://meta.discourse.org/u/pirhoo)
#### Post date: [November 24, 2023, 1:06pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/4 "2023-11-24T13:06:16Z")

</div>

In fact, your question led me to try to understand why it was detecting no test. So I checked the workflow you provide and I see that Qunit is executed with the “PLUGIN\_NAME” which is filled with the repository name.

> <https://github.com/discourse/.github/blob/main/.github/workflows/discourse-plugin.yml#L288>

In my case, the repository name is different from the plugin name. There is even a warning about this in the job logs. I’m gonna try to rename the repository accordingly and I’ll keep you posted 🙂

---

<div class="post-metadata">

### Author: ![pirhoo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pirhoo/32/527677_2.png) [@pirhoo](https://meta.discourse.org/u/pirhoo)
#### Post date: [November 24, 2023, 1:59pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/5 "2023-11-24T13:59:40Z")

</div>

I can confirm **using the same name for the repository and the plugin** did the trick.

Thanks @nbianca for your help!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 24, 2023, 1:59pm UTC](https://meta.discourse.org/t/acceptance-tests-failing-on-github-actions/286355/6 "2023-12-24T13:59:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
