# Integration tests are not covered on CI runners

**URL:** <https://ziggit.dev/t/integration-tests-are-not-covered-on-ci-runners/5839>\
**Category:** Help\
**Tags:** build-system, testing\
**Created:** [September 1, 2024, 2:17am UTC](https://ziggit.dev/t/integration-tests-are-not-covered-on-ci-runners/5839 "2024-09-01T02:17:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [September 14, 2024, 8:18pm UTC](https://ziggit.dev/t/integration-tests-are-not-covered-on-ci-runners/5839/4 "2024-09-14T20:18:29Z")

</div>

Looks like it is running a different version of [`default` cli test](https://github.com/charlesrocket/xtxf/blob/48e736bffb723eae0670c17b6d9cf502efd8e0e0/test/cli.zig#L18-L23).

Try [`mlugg/setup-zig@v1`](https://github.com/marketplace/actions/setup-zig-compiler) in `ci.yml` instead of `goto-bus-stop/setup-zig@v2`

Github action thread in ziggit:

> [@GitHub Actions: mlugg/setup-zig](https://ziggit.dev/t/github-actions-mlugg-setup-zig/4659):
>
> Hey everyone! I’ve spent a little time putting together a GitHub Action to use for creating Actions workflows utilizing the Zig compiler. You can find it [here](https://github.com/marketplace/actions/setup-zig-compiler). The typical use case here is setting up CI for Zig projects. Today, people often use [a similar Action](https://github.com/goto-bus-stop/setup-zig) by goto-bus-stop. My new Action is an alternative which makes (in my opinion) a few improvements. Zig is not fetched from [ziglang.org](http://ziglang.org), but rather from a third-party mirror. This decision was made to avoid frequent downloads from the of…

* * *

EDIT:

I just found what it runs:

> <https://github.com/charlesrocket/xtxf/blob/1e025859a3a35895d07a831626831fd09e68e85a/test/cli.zig#L36-L46>

First of all expect testing functions first argument must be the `expected` value and the second argument must be the `actual` value.

Change this:

```zig
    try std.testing.expectStringEndsWith(proc.err, default_run);
    try std.testing.expectEqual(proc.term.Exited, 0);

```

to:

```zig
    try std.testing.expectStringEndsWith(default_run, proc.err);
    try std.testing.expectEqual(0, proc.term.Exited);

```

* * *

I cannot find `default_run` declaration!

---

_[View the full topic](https://ziggit.dev/t/integration-tests-are-not-covered-on-ci-runners/5839)._
