# \#eunit

**URL:** https://erlangforums.com/tag/eunit/450.md

[Latest](https://erlangforums.com/latest.md) · [Categories](https://erlangforums.com/categories.md) · [Tags](https://erlangforums.com/tags.md)

---

## [Rebar3\_uncovered - Plug-in to show uncovered lines](https://erlangforums.com/t/rebar3-uncovered-plug-in-to-show-uncovered-lines/5550)

<div class="topic-metadata">

**Author:** [@eproxus](https://erlangforums.com/u/eproxus)\
**Replies:** 8\
**Last updated:** [April 20, 2026, 8:31am UTC](https://erlangforums.com/t/rebar3-uncovered-plug-in-to-show-uncovered-lines/5550 "2026-04-20T08:31:03Z")

</div>

Is it a new movie documentary about Rebar and its secret development practices? :detective: No, it’s a plug-in! :puzzle\_piece: :wink: rebar3\_uncovered A Rebar 3 plugin that reports on uncovered lines from tests. Run it …

---

## [?debugHere (group leader?) in a remote eunit node?](https://erlangforums.com/t/debughere-group-leader-in-a-remote-eunit-node/5474)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 0\
**Last updated:** [March 4, 2026, 3:13pm UTC](https://erlangforums.com/t/debughere-group-leader-in-a-remote-eunit-node/5474 "2026-03-04T15:13:02Z")

</div>

Taking the code from Running eunit tests in a separate node? and adding ?debugHere calls, I don’t see any output from the peer. I’m guessing that it’s because the group leader isn’t set to point back to the eunit node, …

---

## [Eunit: {node, ... instantiator broken in OTP-28.x](https://erlangforums.com/t/eunit-node-instantiator-broken-in-otp-28-x/5465)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 1\
**Last updated:** [March 1, 2026, 3:21pm UTC](https://erlangforums.com/t/eunit-node-instantiator-broken-in-otp-28-x/5465 "2026-03-01T15:21:32Z")

</div>

Looking at eunit/examples/eunit\_examples.erl at master · richcarl/eunit · GitHub , it seems like eunit’s {node, Node, …} generator was expected to pass the full node name to the instantiator. In OTP-27.x, this was true. …

---

## [Running eunit tests in a separate node?](https://erlangforums.com/t/running-eunit-tests-in-a-separate-node/5466)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 1\
**Last updated:** [February 28, 2026, 5:26pm UTC](https://erlangforums.com/t/running-eunit-tests-in-a-separate-node/5466 "2026-02-28T17:26:46Z")

</div>

I’ve got a legacy application that doesn’t clean up properly (it leaves stuff in persistent\_term, etc.), and I’d like to isolate it in another BEAM, so it just gets nuked when the test suite finishes. Is there a way to …

---

## [Examples of using eunit's 'with'?](https://erlangforums.com/t/examples-of-using-eunits-with/3470)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 3\
**Last updated:** [January 16, 2026, 2:29pm UTC](https://erlangforums.com/t/examples-of-using-eunits-with/3470 "2026-01-16T14:29:59Z")

</div>

The documentation for with says it looks like this: {with, X::any(), \[AbstractTestFun::((any()) -\> any())\]} but meck uses it like this (simplified): meck\_test\_() -\> {foreach, fun setup/0, fun teardown/1, \[{with, \[T\]}…

---

## [Testing network fragmentation?](https://erlangforums.com/t/testing-network-fragmentation/5151)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 4\
**Last updated:** [October 16, 2025, 8:16pm UTC](https://erlangforums.com/t/testing-network-fragmentation/5151 "2025-10-16T20:16:12Z")

</div>

I’m writing a proxy for a network protocol. In normal operation, in my tests, packets turn up in one piece – i.e. {tcp, S, Packet} contains (at least) an entire packet. I’d like to test my code in situations where this …

---

## [How do/did people set up test environments for projects using Riak KV?](https://erlangforums.com/t/how-do-did-people-set-up-test-environments-for-projects-using-riak-kv/5027)

<div class="topic-metadata">

**Author:** [@lgmfred](https://erlangforums.com/u/lgmfred)\
**Replies:** 2\
**Last updated:** [September 1, 2025, 1:12pm UTC](https://erlangforums.com/t/how-do-did-people-set-up-test-environments-for-projects-using-riak-kv/5027 "2025-09-01T13:12:03Z")

</div>

Hi all :wave:, I’ve known Erlang for a few years (was actually my first language, though I’ve mostly been doing some Elixir recently). I recently inherited an Erlang codebase that uses Riak KV, and I would like to star…

---

## [Doctest - a library to test Erlang doc attributes](https://erlangforums.com/t/doctest-a-library-to-test-erlang-doc-attributes/3614)

<div class="topic-metadata">

**Author:** [@williamthome](https://erlangforums.com/u/williamthome)\
**Replies:** 30\
**Last updated:** [April 3, 2025, 9:49pm UTC](https://erlangforums.com/t/doctest-a-library-to-test-erlang-doc-attributes/3614 "2025-04-03T21:49:20Z")

</div>

OTP 27 has implemented the -doc attribute, but what if its examples could be tested? That’s the purpose of the doctest lib. The motivation for it is this PR, which fixes some examples of the orddict module. Example Ta…

---

## [How do I start an application (specifically telemetry) as part of rebar3 eunit?](https://erlangforums.com/t/how-do-i-start-an-application-specifically-telemetry-as-part-of-rebar3-eunit/4022)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 5\
**Last updated:** [September 30, 2024, 9:26am UTC](https://erlangforums.com/t/how-do-i-start-an-application-specifically-telemetry-as-part-of-rebar3-eunit/4022 "2024-09-30T09:26:27Z")

</div>

How do I start an application (specifically telemetry) as part of rebar3 eunit? In particular, I want it started unconditionally. I do not want to add setup fixtures to all of my tests. This project currently uses erla…

---

## [Eunit timeout in receive results in wrong location in stack trace](https://erlangforums.com/t/eunit-timeout-in-receive-results-in-wrong-location-in-stack-trace/4017)

<div class="topic-metadata">

**Author:** [@rlipscombe](https://erlangforums.com/u/rlipscombe)\
**Replies:** 1\
**Last updated:** [September 22, 2024, 10:14am UTC](https://erlangforums.com/t/eunit-timeout-in-receive-results-in-wrong-location-in-stack-trace/4017 "2024-09-22T10:14:58Z")

</div>

I’ve got some eunit code that looks a bit like this: % ... meck:wait(m, f, '\_', 2000), % L1 receive % L2 message1 -\> ok end, receive % L3 …

---

## [Is it possible to combine multiple eunit coverage reports](https://erlangforums.com/t/is-it-possible-to-combine-multiple-eunit-coverage-reports/3533)

<div class="topic-metadata">

**Author:** [@mpope](https://erlangforums.com/u/mpope)\
**Replies:** 2\
**Last updated:** [May 1, 2024, 4:06pm UTC](https://erlangforums.com/t/is-it-possible-to-combine-multiple-eunit-coverage-reports/3533 "2024-05-01T16:06:11Z")

</div>

I have two completely separate eunit suites for the same application. Is it possible to combine the coverage artifacts from each suite and then perform coverage aggregation? I can’t seem to find how to do this with the c…

---

## [Receiving badarg converting list to reference on GitHub workflow and EUnit test](https://erlangforums.com/t/receiving-badarg-converting-list-to-reference-on-github-workflow-and-eunit-test/2619)

<div class="topic-metadata">

**Author:** [@williamthome](https://erlangforums.com/u/williamthome)\
**Replies:** 9\
**Last updated:** [May 24, 2023, 12:24am UTC](https://erlangforums.com/t/receiving-badarg-converting-list-to-reference-on-github-workflow-and-eunit-test/2619 "2023-05-24T00:24:14Z")

</div>

Hey all. I have a falling eunit test on GitHub, but locally all tests are ok. The GitHub action log: Run rebar3 do eunit, ct ===\> Verifying dependencies... ===\> Analyzing applications... ===\> Compiling changeset ==…

---

## [Trying to test code containing log statements with eunit test from rebar3 but all the logs disappear. Is this intended behavior?](https://erlangforums.com/t/trying-to-test-code-containing-log-statements-with-eunit-test-from-rebar3-but-all-the-logs-disappear-is-this-intended-behavior/2300)

<div class="topic-metadata">

**Author:** [@geib](https://erlangforums.com/u/geib)\
**Replies:** 1\
**Last updated:** [January 20, 2023, 5:16pm UTC](https://erlangforums.com/t/trying-to-test-code-containing-log-statements-with-eunit-test-from-rebar3-but-all-the-logs-disappear-is-this-intended-behavior/2300 "2023-01-20T17:16:19Z")

</div>

I am trying to test some of my code that contains log statements, that I would like to see when running eunit test from rebar3. But all the logs seem to disappear. Is this intended behavior? Is there a way to see my lo…

---

## [How to override EUNIT\_DEBUG\_VAL\_DEPTH macro?](https://erlangforums.com/t/how-to-override-eunit-debug-val-depth-macro/2098)

<div class="topic-metadata">

**Author:** [@ha\_josh](https://erlangforums.com/u/ha_josh)\
**Replies:** 2\
**Last updated:** [December 1, 2022, 10:44pm UTC](https://erlangforums.com/t/how-to-override-eunit-debug-val-depth-macro/2098 "2022-12-01T22:44:59Z")

</div>

On this page under the description for debugVal there is a part that says: Large terms are truncated to the depth given by the macro EUNIT\_DEBUG\_VAL\_DEPTH, which defaults to 15 but can be overridden by the user. This…

---

## [Io:fwrite does not display anything inside eunit code](https://erlangforums.com/t/io-fwrite-does-not-display-anything-inside-eunit-code/2045)

<div class="topic-metadata">

**Author:** [@bhuvan](https://erlangforums.com/u/bhuvan)\
**Replies:** 5\
**Last updated:** [November 22, 2022, 8:22am UTC](https://erlangforums.com/t/io-fwrite-does-not-display-anything-inside-eunit-code/2045 "2022-11-22T08:22:49Z")

</div>

My eunit code xyz\_test\_() has many lines of code. For example, it calls a function to find out the expected reply, before comparing it with the actual reply using the ?assertEqual macro. I have tried to add io:fwrite in…

---

## [Sets version and EUnit](https://erlangforums.com/t/sets-version-and-eunit/1508)

<div class="topic-metadata">

**Author:** [@Sheldon](https://erlangforums.com/u/Sheldon)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 7:09am UTC](https://erlangforums.com/t/sets-version-and-eunit/1508 "2022-06-02T07:09:08Z")

</div>

Hello, I discovered that sets:new() and sets:from\_list() support new version, which should be more efficient and tried to use it, but it makes ?assertEqual to fail unless I create the expected set with v2 as well. Is t…
