# Different unit test naming formats

**URL:** https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978
**Category:** Bugs
**Created:** [June 25, 2015, 2:57am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978 "2015-06-25T02:57:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [June 25, 2015, 2:57am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/1 "2015-06-25T02:57:09Z")

</div>

Hi there,  
  
it seems that Continua CI handles test names for NUnit tests differently if tests use parameters. Test methods without parameters are listed without any additional names while test methods with test cases are listed with their fully qualified identifier.  
  
Here is an example:  
  
namespace MyProduct.Tests;  
  
[TestFixture]  
public class UnitTests  
{  
&nbsp; &nbsp; [Test]  
&nbsp;&nbsp;&nbsp; public void SimpleTest()  
&nbsp;&nbsp;&nbsp; {  
&nbsp;&nbsp;&nbsp; }  
&nbsp;&nbsp;&nbsp;   
&nbsp;&nbsp;&nbsp; [Test]  
&nbsp;&nbsp;&nbsp; [TestCase(“input value”, “expected result”)]  
&nbsp;&nbsp;&nbsp; public void MultipleTests(string input, string expectedResult)  
&nbsp;&nbsp;&nbsp; {  
&nbsp;&nbsp;&nbsp; }  
}  
  
Continua CI will list “SimpleTest” and “MyProduct.Tests.UnitTests.MultipleTests(input value, expected value)”.  
  
As the namespace and the test fixture are listed in separate column the fully qualified identifier is not neccessary for tests with parameters.  
  
We are still at version 1.5.1.49.  
  
Kind regards  
  
Kay Zumbusch

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [June 26, 2015, 8:38am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/2 "2015-06-26T08:38:01Z")

</div>

Hi Kay,  
  
Thanks for reporting this. I have implemented a fix for the next version.

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [June 26, 2015, 11:14am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/3 "2015-06-26T11:14:51Z")

</div>

I also found out that the name of the text fixture is wrong for unit tests with parameters. In case of my example the name of the test fixture for tyhe simple test is “UnitTests” whil the name for the test with parameters is “MultipleTests”.   
  
 Kind regards   
  
 Kay Zumbusch

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [June 29, 2015, 2:28am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/4 "2015-06-29T02:28:12Z")

</div>

Hi Kay,  
  
Yes, the fix will deal with this too.&nbsp;

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [August 4, 2015, 12:18pm UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/5 "2015-08-04T12:18:50Z")

</div>

Hi Dave,  
  
I was finally able to update to the latest version of 1.6. Although the naming of the tests is consistent now I’m still not entirely happy with the result. The test name includes the full identifier of the test method although name space and fixture have dedicated columns. I would prefer just the test name in the name column.  
  
Additionally the evaluation of the namespace seems to be incomplete. From my sample I’d expect “MyProduct.Tests” as the namespace but we only get “MyProduct”.  
  
Regards  
  
Kay Zumbusch

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [August 5, 2015, 8:58am UTC](https://www.finalbuilder.com/forums/t/different-unit-test-naming-formats/5978/6 "2015-08-05T08:58:42Z")

</div>

Hi Kay,  
  
Thanks for reporting this. We missed this as our tests only had a single namespace. We’ll get this fixed and send out a new version tomorrow.
