# Stress Testing mender standalone setup

**URL:** https://hub.mender.io/t/stress-testing-mender-standalone-setup/817
**Category:** General Discussions
**Created:** [July 11, 2019, 8:19am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817 "2019-07-11T08:19:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![pei.cei](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@pei.cei](https://hub.mender.io/u/pei.cei)
#### Post date: [July 11, 2019, 8:19am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/1 "2019-07-11T08:19:22Z")

</div>

Hello,

I have set-up mender 2.0.0 on my local server. I am interested more on testing it.

I saw a couple of projects in github

> **[mendersoftware/mender-test-containers](https://github.com/mendersoftware/mender-test-containers)**
>
> Contains shared code for creating containers for test purposes - mendersoftware/mender-test-containers

  

> **[mendersoftware/mender-qa](https://github.com/mendersoftware/mender-qa)**
>
> Repository to run and test Mender in QEMU. Contribute to mendersoftware/mender-qa development by creating an account on GitHub.

  

> **[mendersoftware/mender-test-containers](https://github.com/mendersoftware/mender-test-containers)**
>
> Contains shared code for creating containers for test purposes - mendersoftware/mender-test-containers

  

> **[mendersoftware/integration-test-runner](https://github.com/mendersoftware/integration-test-runner)**
>
> Github web-hook to Jenkins Proxy used to run integration tests - mendersoftware/integration-test-runner

  

> **[mendersoftware/mender-stress-test-client](https://github.com/mendersoftware/mender-stress-test-client)**
>
> Mender stress test client. Contribute to mendersoftware/mender-stress-test-client development by creating an account on GitHub.

Is it possible to give some information on how these have to be run?  
from test environment set-up to executing them.

Thank you!  
Pei

---

<div class="post-metadata">

### Author: ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)
#### Post date: [July 12, 2019, 3:09pm UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/2 "2019-07-12T15:09:09Z")

</div>

I think for the most part these are used by our test frameworks and may only be of limited utility to others. That said, the README.md file that is in each one is the place to start. I have not personally worked with them so cannot offer much; @lluiscampos may have more to offer here.

Drew

---

<div class="post-metadata">

### Author: ![pei.cei](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@pei.cei](https://hub.mender.io/u/pei.cei)
#### Post date: [July 13, 2019, 4:34am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/3 "2019-07-13T04:34:29Z")

</div>

@drewmoseley Thank you for the reply.

README files do not have much information in those, may be, not added as not intended for others. I am looking at doing stress test and unit tests. I will be happy to know more information about testing procecdure.

@lluiscampos please do help me understand steps to setup the test environment and procedure to test.

Thanks in advance.  
Pei.

---

<div class="post-metadata">

### Author: ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)
#### Post date: [July 16, 2019, 5:47am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/4 "2019-07-16T05:47:50Z")

</div>

@pei.cei, I don’t have much knowledge of the testing infrastructure I’m afraid, and Lluis is gone for a few weeks now, but I think a good place to look would be: `https://github.com/mendersoftware/integration` which brings it all together

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [July 16, 2019, 7:05am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/5 "2019-07-16T07:05:29Z")

</div>

You can also look at [this script](https://github.com/mendersoftware/mender-qa/blob/master/scripts/jenkins-yoctobuild-build.sh) which is what drives our test runner.

---

<div class="post-metadata">

### Author: ![lluiscampos](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/lluiscampos/32/112_2.png) [@lluiscampos](https://hub.mender.io/u/lluiscampos)
#### Post date: [August 7, 2019, 9:03am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/6 "2019-08-07T09:03:38Z")

</div>

Hello @pei.cei and sorry for my late reply.

> [@pei.cei](#):
>
> I am looking at doing stress test and unit tests. I will be happy to know more information about testing procecdure.

In Mender we have a great deal of test infrastructure to assure high quality in our product. As we use a micro-service architecture, the details on how to do the tests are a bit complex.

To quickly point on your questions:

- Unit tests. These are on each of the components repository. For instance for the Mender client unit tests you can just clone `mender` repo and run `go test`. Similarly to every other backend component or tool
- Stress tests. These are tests to study the performance of your server infrastructure. You only need to build `mender-stress-test-client` (you can natively do it with `go build` or inside a Docker image with `docker build -t tester . `) and then just run as many clients as you want pointing to your server. Use `mender-stress-client -h` to learn about required and additional options.

And as others have pointed out, apart from these you can also look into `integration` repository, which contains all automated tests that we run in our pipelines to validate PRs, and `mender-qa` repository, which contains the scripts we use to trigger such pipelines.

I hope this is useful.

---

<div class="post-metadata">

### Author: ![pei.cei](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@pei.cei](https://hub.mender.io/u/pei.cei)
#### Post date: [September 16, 2019, 6:54am UTC](https://hub.mender.io/t/stress-testing-mender-standalone-setup/817/7 "2019-09-16T06:54:22Z")

</div>

@lluiscampos Thank you for the useful pointers, I will try to run.
