# Shelved unit tests marked as failed

**URL:** https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304
**Category:** Discussion
**Created:** [November 14, 2018, 8:45pm UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304 "2018-11-14T20:45:20Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/96bed5/32.png) [@lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/u/lukedhdagdaghdashdfshdfsdf)
#### Post date: [November 14, 2018, 8:45pm UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/1 "2018-11-14T20:45:20Z")

</div>

I am using the MSTest action to import \*.trx files generated from MSTest and Google Test Adapter. The report generation is fine. Likewise the ci displays the results correctly.

Due to an environment problem, we had 200 tests shelved, pending a solution. On the next run, Ci still flags the Import MSTest action as failed. There are no ‘new failures’. The MSTest action should report passed.

---

<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: [November 14, 2018, 10:57pm UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/3 "2018-11-14T22:57:38Z")

</div>

Hi Luke,

We’ve just tested shelving some MSTest unit tests using the latest version of Continua CI and the build passed with the tests marked as shelved and ignored as expected.

Which version of Continua CI are you running? How did you shelve the tests, by test, fixture or namespace, and did you apply the shelving to the configuration or project? Is there a number under Shelved on the Unit Tests tab of the build view as shown below? If you click on the number, are the unit tests listed?

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/0/074192476423b2a3740de1ae0623c89f1f832415.png)

As we are unable to reproduce, we would need further details to investigate. With the latest version of Continua CI installed, could you [enable debug logging](https://wiki.finalbuilder.com/display/continua/Debug+Logging), restart the Continua CI Server service, ensure that all failed tests are marked as shelved on the Unit Tests tab of the build view and then run the build again?  
Send the log file to me as a direct message (or alternatively to [support@finalbuilder.com](mailto:support@finalbuilder.com)).

Additionally let us know which values and options you have specified in the MSTest action? Could you also send a copy of the trx file as this may be relevant?

---

<div class="post-metadata">

### Author: ![lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/96bed5/32.png) [@lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/u/lukedhdagdaghdashdfshdfsdf)
#### Post date: [November 15, 2018, 11:20am UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/5 "2018-11-15T11:20:01Z")

</div>

I have sent you a few attachments:

Details panel screen shot  
Log panel screen shot  
Unit Test Panel  
Details action log for ci stages  
Test report with failing test (We have many test assemblies).

The only other piece of information I can imagine is useful – Some test methods are tagged with the method test attribute [Ignore] in C#. Now these were originally shown as ‘New Failures’ in the ci agent before being shelved. These were shelved as part of the original tests that resulted in this ticket creation.

We cannot upgrade for complicated reasons, so any solution on our version would be great.

Thanks for the help in advance!

---

<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: [November 15, 2018, 11:25am UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/6 "2018-11-15T11:25:48Z")

</div>

> [@lukedhdagdaghdashdfshdfsdf](#):
>
> We cannot upgrade for complicated reasons, so any solution on our version would be great.

What version are you running? Version [1.8.1.272](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1) includes a relevant fix

> - Update: Shelving is now taken into account when using unit test actions which import from a file e.g. Import JUnit Tests, Import MSTest Tests, Import NUnit Tests and Import XUnit Tests.

There’s not really any way we can fix your issue if you are not able to upgrade to a patched version.

---

<div class="post-metadata">

### Author: ![lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/96bed5/32.png) [@lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/u/lukedhdagdaghdashdfshdfsdf)
#### Post date: [November 15, 2018, 11:59am UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/7 "2018-11-15T11:59:14Z")

</div>

Sorry buddy, cut and didn’t paste:

final builder version: 7.0.0.3254  
Ci version: Continua 1.8.1.58

We cannot upgrade to a higher version but we can apply a patch to our current version.

---

<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: [November 15, 2018, 12:10pm UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/8 "2018-11-15T12:10:11Z")

</div>

These [versions](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1) are all patches with bug fixes to your current version - choose a version that is at least v1.8.1.272

---

<div class="post-metadata">

### Author: ![lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/l/96bed5/32.png) [@lukedhdagdaghdashdfshdfsdf](https://www.finalbuilder.com/forums/u/lukedhdagdaghdashdfshdfsdf)
#### Post date: [November 15, 2018, 12:39pm UTC](https://www.finalbuilder.com/forums/t/shelved-unit-tests-marked-as-failed/6304/9 "2018-11-15T12:39:05Z")

</div>

Fantastic, I will discuss this with the team and keep you updated.

Thanks for the help.
