# Test Plans Not Executing with tuist test

**URL:** <https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816>\
**Category:** General\
**Tags:** tests\
**Created:** [November 17, 2025, 3:06pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816 "2025-11-17T15:06:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [November 17, 2025, 3:06pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/1 "2025-11-17T15:06:52Z")

</div>

**Problem:**  
Test plans don’t execute with `tuist test --test-plan PrimaryTests.xctestplan MyApp-Main`, but work fine in Xcode. Other schemes without test plans work normally with `tuist test`.

**Command:**

bash

```auto
tuist test --test-plan PrimaryTests.xctestplan MyApp-Main

```

**Configuration:**

swift

```auto
.scheme(
    name: "MyApp-Main",
    testAction: .testAction(
        targets: [],
        testPlans: ["Testplan/PrimaryTests.xctestplan"]
    )
)

```

**Key Facts:**

- ✅ Test plans work in Xcode

- ✅ `tuist test MyApp-Other` works (no test plans)

- ❌ `tuist test --test-plan PrimaryTests.xctestplan MyApp-Main` doesn’t execute tests

- Test plans are only in MyApp-Main scheme

**Question:**  
Why do test plans prevent `tuist test` from executing tests when they work fine in Xcode? Is there a specific requirement for test plans with Tuist?

Note: Testplan already have the targets specofied correctly.

---

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 20, 2025, 2:51pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/2 "2025-11-20T14:51:45Z")

</div>

Hey @muneerkk66 👋

`tuist test` should work seamlessly with test plans – sorry to hear it’s not the case for you. We’ll need a bit more information to debug this, ideally a full reproducer.

If a reproducer is too complex, I’d also suggest checking:

- [This](https://github.com/tuist/tuist/tree/main/cli/Fixtures/app_with_test_plan) fixture that showcases a project with a test plan
- run the `tuist test` command with `—generate-only` – do you see the test plan in the generated project?

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [November 20, 2025, 8:02pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/3 "2025-11-20T20:02:48Z")

</div>

@marekfort  
Thanks for your reply.

Yes, I can confirm that the test plan _is_ generated correctly when using `tuist test --generate-only`.

A couple more details that might help:

I have multiple projects inside the workspace, and each test entry in the test plan looks like this:

```auto
{
  "target": {
    "containerPath": "container:Authentication/Authentication.xcodeproj",
    "identifier": "XXXXXXX-XXXXXXXXX-XXXXXX",
    "name": "AuthenticationTests"
  }
}

```

Could the `containerPath` pointing at project-local `.xcodeproj` files have any impact when Tuist executes the test plan?  
Xcode handles these container paths fine, but I’m wondering if Tuist expects test plan targets to use a different or more “global” path format.

Let me know if this might be related or if you want a minimal reproducer.

---

<div class="post-metadata">

**Author:** ![marekfort](https://community.tuist.dev/user_avatar/community.tuist.dev/marekfort/32/8_2.png) [@marekfort](https://community.tuist.dev/u/marekfort)\
**Post date:** [November 20, 2025, 9:08pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/4 "2025-11-20T21:08:02Z")

</div>

> [@muneerkk66](#):
>
> Could the `containerPath` pointing at project-local `.xcodeproj` files have any impact when Tuist executes the test plan?

I’d probably try to:

- put the test plan in the root
- ensure the `containerPath` is pointing to the `.xcodeproj` relative to the root

Now, we should definitely handle your scenario more gracefully, but this could help nail down the issue.

Alternatively, I’d try to change the `containerPath` of the test plan to be relative to the test plan location when the test plan is in the same directory as the project, like we have in [this fixture](https://github.com/tuist/tuist/blob/main/cli/Fixtures/app_workspace_with_test_plan/App/AppTestPlan.xctestplan).

> [@muneerkk66](#):
>
> Let me know if this might be related or if you want a minimal reproducer.

A reproducer would still be amazing. You might be able to reproduce your setup and the issue with one of the fixtures I linked – reproducers help a ton in fixing issues like this.

Also, just double checking – what Tuist version are you on? If not the latest, I’d suggest to update first.

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [November 22, 2025, 2:11pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/5 "2025-11-22T14:11:06Z")

</div>

Thanks again @marekfort.

I tried setting up a minimal reproducer using the same multi-project structure, but I wasn’t able to reproduce the issue. In the sample setup, Tuist successfully located and executed the test plan — even when I matched the folder hierarchy and placed the test plan at the workspace root.

In our actual project, though, Tuist still doesn’t seem able to resolve the test plan paths during `tuist test`, even after moving the test plan to the root and adjusting the `containerPath` values. Xcode continues to pick it up without any issues.

One more detail that might help:  
If I run the tests directly using an `xcodebuild` command **and pass the exact same test plan** , it works fine. So the test plan itself is valid, and the issue appears to be tied specifically to how Tuist interprets our project layout or resolves paths inside the test plan.

I’ll continue trying to isolate the issue, and if I manage to extract a proper reproducible example, I’ll share it.

Thanks again for the guidance!

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [November 23, 2025, 8:14pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/6 "2025-11-23T20:14:24Z")

</div>

[app\_workspace\_with\_test\_plan.zip](https://community.tuist.dev/uploads/short-url/bA6mhPqHvrpW6Cd4GaK8xGW2KEE.zip) (88.5 KB)

Here is my sample project.

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [November 26, 2025, 9:41pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/7 "2025-11-26T21:41:52Z")

</div>

@marekfort Any updates here ?

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [December 4, 2025, 2:55pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/8 "2025-12-04T14:55:15Z")

</div>

@muneerkk66 thanks for the reproducible project. What are the steps that you run there to make it fail?

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [December 7, 2025, 9:29pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/9 "2025-12-07T21:29:54Z")

</div>

@pepicrft Thank you for your response. Please find the details below.

`tuist test MainApp-Scheme --test-plan UnitTests`

**Generating project for testing**

**Loading and constructing the graph**

It might take a while if the cache is empty

Using cache binaries for the following targets:

**Generating workspace MainApp.xcworkspace**

Generating project App1

Generating project App2

The scheme MainApp-Scheme’s test action has no test plans to run, finishing early.

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [December 9, 2025, 4:14pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/10 "2025-12-09T16:14:24Z")

</div>

Thanks @muneerkk66. I checked your project, and it turns out you have a typo in the path to the test plan. It should be `Testplan/UnitTests.xctestplan` and not `TestPlans/UnitTests.xctestplan`. Once you change that, you’ll notice that if you run `tuist generate`, the scheme `MainApp-Scheme` will contain the test plan.

You’ll also have to add build targets to the scheme, otherwise there’s nothing to build. Note that the targets that need to build are not infered from your test plan, hence why you need to be explicit about it.

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [December 14, 2025, 2:13pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/11 "2025-12-14T14:13:57Z")

</div>

@pepicrft

Thanks a lot for checking the project and pointing that out! 🙌  
You’re absolutely right — the issue was a typo in the test plan path **(my bad)**. After updating it to `Testplan/UnitTests.xctestplan`, the test plan now appears correctly in the `MainApp-Scheme` when running `tuist generate`.

Also, is there anywhere else where I should be configuring location settings?  
Some of my data tests are failing due to location and region formatting issues, but they work correctly when I run them through the test plan.

It feels like I might be missing a configuration somewhere. I’ve already added the region via the test plan options — is there anything else I should be setting (for example at the scheme, target, or environment level)?

---

<div class="post-metadata">

**Author:** ![pepicrft](https://community.tuist.dev/user_avatar/community.tuist.dev/pepicrft/32/5_2.png) [@pepicrft](https://community.tuist.dev/u/pepicrft)\
**Post date:** [December 15, 2025, 10:25am UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/12 "2025-12-15T10:25:24Z")

</div>

Hi @muneerkk66 👋

> [@muneerkk66](#):
>
> Thanks a lot for checking the project and pointing that out! 🙌  
> You’re absolutely right — the issue was a typo in the test plan path **(my bad)**. After updating it to `Testplan/UnitTests.xctestplan`, the test plan now appears correctly in the `MainApp-Scheme` when running `tuist generate`.

Sweet. That’s great to hear 🙂

> [@muneerkk66](#):
>
> Also, is there anywhere else where I should be configuring location settings?  
> Some of my data tests are failing due to location and region formatting issues, but they work correctly when I run them through the test plan.
> 
> It feels like I might be missing a configuration somewhere. I’ve already added the region via the test plan options — is there anything else I should be setting (for example at the scheme, target, or environment level)?

If you are using test plans, the location is defined in the test plan itself, which you can edit through Xcode’s UI once you generate the project pointing to it. If you are not using test plans, then you have to create a custom [scheme](https://docs.tuist.dev/en/references/project-description/structs/scheme). There you can include the [testable targets](https://docs.tuist.dev/en/references/project-description/structs/testabletarget#testabletarget) in the [test action](https://docs.tuist.dev/en/references/project-description/structs/testaction#testaction) with a [simulated location](https://docs.tuist.dev/en/references/project-description/structs/testabletarget#simulatedlocation) set on it.

---

<div class="post-metadata">

**Author:** ![muneerkk66](https://community.tuist.dev/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@muneerkk66](https://community.tuist.dev/u/muneerkk66)\
**Post date:** [December 16, 2025, 10:55pm UTC](https://community.tuist.dev/t/test-plans-not-executing-with-tuist-test/816/13 "2025-12-16T22:55:54Z")

</div>

Perfect, Thanks a lot fo all your help !
