<p>Running <code>cabal test</code> without a target should work. If you want to specify the target, you can check all of them in the <code>Week0X.cabal</code> file.  For example, for week 2, you'll see that there's a <code>test-suite week02-homework</code> target in the <code>Week02.cabal</code> file, so <code>cabal test week02-homework</code> should run those tests specifically.</p>

CC BY-SA 4.0
2024-10-26T22:19:35.793Z
2024-10-26T22:19:35.793Z
Robertino
<p>I am running into the same issue. Did you ever get this resolved on your end?</p>

CC BY-SA 4.0
2024-10-22T14:25:00.960Z
2024-10-22T14:25:00.960Z
KStacy
<p>Hi i setup the dev environment according to the youtube video, &quot;cabal update&quot; worked,  but the second command does not work for me:</p>
<pre><code>root@c26be85e2bf4:/workspace/code/Week02# cabal test homework
Resolving dependencies...
cabal: The test command can only run test suites as a whole, not files or
modules within them, but the target 'Homework' refers to the module Homework
in the library week08.

root@c26be85e2bf4:/workspace/code/Week02#
</code></pre>
<p>i used <a href="https://github.com/input-output-hk/plutus-pioneer-program" rel="nofollow noreferrer">https://github.com/input-output-hk/plutus-pioneer-program</a> at latest commit b55a7d2409cbf09a04ab471796f410083129acb6</p>

<plutus-pioneer-program><cabal><development><dev-container>
Setup dev enviroment locally fails on cabal test homework
# Setup dev enviroment locally fails on cabal test homework

(Asked by: username_0 on 2024-05-14)

Hi i setup the dev environment according to the youtube video, "cabal update" worked,  but the second command does not work for me:
root@c26be85e2bf4:/workspace/code/Week02# cabal test homework
Resolving dependencies...
cabal: The test command can only run test suites as a whole, not files or
modules within them, but the target 'Homework' refers to the module Homework
in the library week08.

root@c26be85e2bf4:/workspace/code/Week02#

i used https://github.com/input-output-hk/plutus-pioneer-program at latest commit b55a7d2409cbf09a04ab471796f410083129acb6

**Tags:** plutus-pioneer-program, cabal, development, dev-container

---

## 2 answers

### Answer by username_1 on 2024-10-26. Score: 0

Running `cabal test` without a target should work. If you want to specify the target, you can check all of them in the `Week0X.cabal` file. For example, for week 2, you'll see that there's a `test-suite week02-homework` target in the `Week02.cabal` file, so `cabal test week02-homework` should run those tests specifically.


---

### Answer by username_2 on 2024-10-22. Score: 0

I am running into the same issue. Did you ever get this resolved on your end?


---

