Skip to content

Specflow: Error when building a solution.

04/06/2015

“Could not copy” and “Unable to copy file” are two error messages that may confuse you (like it confused me for a while). The errors say “Exceeded retry count of 10” as well.

My situation was that I am running integration tests from the Visual Studio Test Runner using Specflow. I have changed some code in my test and when trying to build the project (sometimes) the error popped up. After trying different methods and re-starting several times my machine I discover the problem.

Sometimes the Execution Engine keeps on running after finishing the run of the test. This means the DLL is hold by this process.

To be able to compile the project again (without re-stating your machine) the only thing you need to do is to “kill” that process.

1.- Open the Task Manager.

2.- Sort by name the task

3.- Select vstest.executionengine.x86.exe and click “End Task”

4.- Repeat step 3 for every instance of the Execution Engine.

Done!

——————————————————————————————————————————————-

“Could not copy” (no puedo copier) y “Unable to copy file” (no puedo copier el archive) son dos errors que te pueden confundir (como me tuvo confundido a mi por un tiempito). El error también dice que se excedió la cuenta de 10.

Lo que me pasaba a mi era que estaba ejecutando Tests de Integración usando Specflow. En algún momento, cambio el código y trato de recompilar el projecto pero (algunas veces) recibía este error. Después de tartar diferentes métodos (sobre todo reiniciar la computadora varias veces) descubrí el problema.

Resulta ser que algunas veces, el motor de ejecuciones de tests en Visual Studio no termina correctamente y se queda con un punter a la DLL y no la libera.

La solución es simple:

1.- Abrir el Administrador de Tareas

2.- Ordenar por nombre

3.- Seleccionar vstest.executionengine.x86.exe  y luego precionar “Finalizar la tarea”

4.- Repetir el paso anterior por cada instancia del Motor de Ejecución de Test que se haya quedado corriendo.

Listo!

From → IT

Leave a Comment

Leave a comment