# Does anyone have an example of Euint testing a distributed system using riak\_core?

**URL:** <https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891>\
**Category:** Questions / Help\
**Tags:** rebar3, erlang, riak\_core, euint\
**Created:** [September 21, 2023, 4:20pm UTC](https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891 "2023-09-21T16:20:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![morguee](https://erlangforums.com/user_avatar/erlangforums.com/morguee/32/1965_2.png) [@morguee](https://erlangforums.com/u/morguee)\
**Post date:** [September 21, 2023, 4:20pm UTC](https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891/1 "2023-09-21T16:20:08Z")

</div>

Hi, I am looking for an example/github repo of EUint testing a distributed system that uses `riak_core`. I am trying to add `riak_core` to my erlang project, which already has extensive EUint testing, and would like to avoid using common tests. I have already used [this](https://github.com/lambdaclass/riak_core_tutorial) tutorial to get me started on adding `riak_core` to my project, however it only has a common test example. My first question would be: Is it even possible to use EUint testing while using `riak_core`? Thank you.

---

<div class="post-metadata">

**Author:** ![mmin](https://erlangforums.com/user_avatar/erlangforums.com/mmin/32/2193_2.png) [@mmin](https://erlangforums.com/u/mmin)\
**Post date:** [September 22, 2023, 6:47am UTC](https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891/2 "2023-09-22T06:47:57Z")

</div>

Maybe you can do it using [EUnit fixtures](https://learnyousomeerlang.com/eunit#fixtures), but IMHO it is more simple and intuitive to do this kind of stuff using common tests. Is there any specific reason why you want to avoid CT?

---

<div class="post-metadata">

**Author:** ![scherrey](https://erlangforums.com/user_avatar/erlangforums.com/scherrey/32/242_2.png) [@scherrey](https://erlangforums.com/u/scherrey)\
**Post date:** [September 22, 2023, 1:28pm UTC](https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891/3 "2023-09-22T13:28:53Z")

</div>

I think the main issue is that this is an existing code base which they’re trying to add riak-core into and they already have a large investment of eunit test cases. Would prefer not to have to abandon all those and start over. Is there a particular issue with EUnit that makes it not work with riak-core?

---

<div class="post-metadata">

**Author:** ![rfk23](https://erlangforums.com/letter_avatar_proxy/v4/letter/r/77aa72/32.png) [@rfk23](https://erlangforums.com/u/rfk23)\
**Post date:** [September 22, 2023, 8:31pm UTC](https://erlangforums.com/t/does-anyone-have-an-example-of-euint-testing-a-distributed-system-using-riak-core/2891/4 "2023-09-22T20:31:10Z")

</div>

Common test and eunit are not mutually exclusive. One can use both tools in the same project.  
Neither test framework will offer a particularly smooth experience when working with a complex stateful distributed system like riak\_core, though.
