Profile a test will crash with exception

Bug #1189268 reported by Terje Sandstrom
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
NUnit Test Adapter
Fix Released
High
Terje Sandstrom

Bug Description

This bug was reported on VS Gallery by Zumpiez.
"When attempting to profile an NUnit test via Test Explorer I get the following output:

------ Run test started ------
An exception occurred while invoking executor 'executor://nunittestexecutor/': EnableShutdownAfterTestRun cannot be enabled if KeepAlive is false.
========== Run test finished: 0 run (0:00:02.8531632) ==========

The "Performance" output category shows
"File contains no data buffers
File contains no data buffers
Analysis failed"

Has anybody run into this before?"

The error is caused by a bug in VS using two Properties for the same thing, shutting Down the adapter, and if KeepAlive is false, EnableShutdownAfterTestRun can not be set to true at the same time, even if the meaning is identical. EnableShutdownAfterTestRun can only be set to true or false when KeepAlive is true.

The adapter needs to work around this issue, and missed this for the profile case.

I've attached a 0.95.3 version where this check is also done for the profiling case.

Revision history for this message
Terje Sandstrom (b-tfrje-j) wrote :
Changed in nunit-vs-adapter:
status: New → In Progress
assignee: nobody → Terje Sandstrom (b-tfrje-j)
Changed in nunit-vs-adapter:
status: In Progress → Fix Committed
Changed in nunit-vs-adapter:
status: Fix Committed → Fix Released
Changed in nunit-vs-adapter:
importance: Undecided → Medium
importance: Medium → High
milestone: none → 0.96
Revision history for this message
Tali Lerner (tali-lerner) wrote :

I user the latest version of the NUnit adapter and I still get the memory issues that as I understand should have been resolved.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.