# Qunit in Docker

**URL:** https://meta.discourse.org/t/qunit-in-docker/138232
**Category:** Development
**Created:** [January 10, 2020, 10:53am UTC](https://meta.discourse.org/t/qunit-in-docker/138232 "2020-01-10T10:53:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![AlexanderFillbrunn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexanderfillbrunn/32/165671_2.png) [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)
#### Post date: [January 10, 2020, 10:53am UTC](https://meta.discourse.org/t/qunit-in-docker/138232/1 "2020-01-10T10:53:49Z")

</div>

Hi,  
I followed the [Beginners Guide to Install Discourse for Development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009), wrote my plugin and would now like to write tests for it. However, the qunit site is not accessible at `http://localhost:3000/qunit` (ERR\_EMPTY\_RESPONSE), but the Discourse installation on port 9292 is working fine. Do I need to pass some additional parameter to unicorn to make it run qunit as well? I ran boot\_dev with the -p option, so that can’t be it.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [January 10, 2020, 10:57am UTC](https://meta.discourse.org/t/qunit-in-docker/138232/2 "2020-01-10T10:57:36Z")

</div>

> [@AlexanderFillbrunn](#):
>
> the Discourse installation on port 9292 is working fine

If Discourse is on port 9292, then qunit will be there as well. `http://localhost:9292/qunit`

3000 is the default port, so maybe you changed some configuration?

---

<div class="post-metadata">

### Author: ![AlexanderFillbrunn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexanderfillbrunn/32/165671_2.png) [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)
#### Post date: [January 10, 2020, 12:47pm UTC](https://meta.discourse.org/t/qunit-in-docker/138232/3 "2020-01-10T12:47:41Z")

</div>

Hi,  
thanks a lot, that works. Port 9292 is the default for the Docker development environment, I did not change it. Maybe it makes sense to update the post at [Developing Discourse Plugins - Part 6 - Add acceptance tests](https://meta.discourse.org/t/beginner-s-guide-to-creating-discourse-plugins-part-6-acceptance-tests/32619) to mention that the port is different for the Docker way.  
Kind regards  
Alexander

---

<div class="post-metadata">

### Author: ![AlexanderFillbrunn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexanderfillbrunn/32/165671_2.png) [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)
#### Post date: [January 10, 2020, 12:50pm UTC](https://meta.discourse.org/t/qunit-in-docker/138232/4 "2020-01-10T12:50:42Z")

</div>

Sorry, it still does not work. I do not get the previous error anymore and the page title shows up as QUnit Test Runner, but the page is empty and the console says: `Uncaught Error: Sprockets::FileNotFound: couldn't find file 'qunit/qunit/qunit' with type 'application/javascript'`.  
Kind regards  
Alexander

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [January 12, 2020, 11:32pm UTC](https://meta.discourse.org/t/qunit-in-docker/138232/5 "2020-01-12T23:32:00Z")

</div>

I have no repro here, have you started from a clean slate? Try:

```plaintext
cd discourse
sudo rm -fr data
d/shutdown_dev
d/boot_dev --init

```

Then visit `localhost:9292/qunit`

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/a/ba34debb4144fcf4ab8e43a8fe66ea2b094770fa.png)

Works fine here.

---

<div class="post-metadata">

### Author: ![AlexanderFillbrunn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alexanderfillbrunn/32/165671_2.png) [@AlexanderFillbrunn](https://meta.discourse.org/u/AlexanderFillbrunn)
#### Post date: [January 13, 2020, 9:37am UTC](https://meta.discourse.org/t/qunit-in-docker/138232/6 "2020-01-13T09:37:55Z")

</div>

Hi @sam,  
thanks for your reply. I removed the data directory, pulled the latest master and started the container again, but the problem still persists. I am on macOS Catalina. If you need any other information, let me know.  
Kind regards  
Alexander

---

<div class="post-metadata">

### Author: ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)
#### Post date: [May 14, 2020, 9:33pm UTC](https://meta.discourse.org/t/qunit-in-docker/138232/7 "2020-05-14T21:33:38Z")

</div>

I also was receiving this same error:

> [@AlexanderFillbrunn](#):
>
> `Uncaught Error: Sprockets::FileNotFound: couldn't find file 'qunit/qunit/qunit' with type 'application/javascript'` .

on a fresh Pop!\_OS 20.04 install (non-docker). I resolved it by running

```plaintext
bundle exec bin/rake qunit:test

```

and I noticed it installed a bunch of npm packages before starting to run the tests. Once that was done, I started the rails server back up and I could access qunit in the browser with `localhost:3000/qunit`.
