# Environment variables for MSTEST

**URL:** https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127
**Category:** Discussion
**Created:** [December 9, 2013, 10:42am UTC](https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127 "2013-12-09T10:42:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [December 9, 2013, 10:42am UTC](https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127/1 "2013-12-09T10:42:45Z")

</div>

I can define environment variables for MsBuild and some other actions but not for MSTEST.

Would be nice to have it because depending on the branch that is currently building, we need a different database for our integration tests.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [December 9, 2013, 10:43am UTC](https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127/2 "2013-12-09T10:43:22Z")

</div>

Which is gathered in the tests itself using “Environment.GetEnvironmentVariable” which we wanna set to the current branches name and use them as a suffix.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 10, 2013, 1:34am UTC](https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127/3 "2013-12-10T01:34:56Z")

</div>

An oversight on our part, will add for next update. Any actions which execute a process should have the Environment Variables tab, I’ll make sure that’s the case.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [December 10, 2013, 8:33am UTC](https://www.finalbuilder.com/forums/t/environment-variables-for-mstest/5127/4 "2013-12-10T08:33:05Z")

</div>

thank you.
