MSTest test artifacts are stored to wrong location
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #12239 de @Evangelink — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
Línea de trabajo
Start by tracing how MSTest determines the artifact output directory and how that path is reported when running from the command line and Visual Studio Test Explorer. Reproduce with MSTest 4.5.2 and MTP 2.5.2, then compare the reported paths with where the files are written. Done means the reported artifact locations match the actual locations in both environments.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Test artifacts are stored to wrong location
Version used
MSTest 4.5.2
MTP 2.5.2
Steps To Reproduce
- Run test with command line or in VisualStudio Test Explorer
- Wait till test is completed
- Review test output
Expected behavior
Artifacts are stored to correct location and correct list of artifacts is shown
Actual behavior
Run with command line
Artifacts are actually stored to current directory but logs shows another location:
In process file artifacts produced:
- For test 'FeedbackTab_NavigateToObjectFeedback': TestResults.mstest-c2fb5fba\2\FeedbackTab_NavigateToObjectFeedback_3624.zip
- For test 'FeedbackTab_NavigateToObjectFeedback': TestResults.mstest-c2fb5fba\1\FeedbackTab_NavigateToObjectFeedback_9e9866b5-687f-43c6-83ab-0c2c3de0554d.png
In VS Studio Test Explorer:
Artifacts are stored to:
C:\repo1\Testing\FunctionalTests\FunctionalTests.UITests\bin\Debug
Test report shows:
Attached files not found:
C:\repo1\Testing\FunctionalTests\TestResults.mstest-8ccbca7f\2\FeedbackTab_NavigateToObjectFeedback_e865.zip
C:\repo1\Testing\FunctionalTests\TestResults.mstest-8ccbca7f\1\FeedbackTab_NavigateToObjectFeedback_2ecb4da8-614c-46d9-a9b2-d26eec9db2ee.png
Additional context
We are using Microsoft.Testing.Extensions.AzureDevOpsReport to publish test results in pipeline and it's working fine. All attachments are published.
- Lenguaje dominante
- C#
- Estrellas
- 1.1k
- Forks
- 312
- Merge medio
- 10 h 36 min
- PR fusionados (30 d)
- 345
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/testfx
-
needs/triage
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
Los mantenedores suelen responder en 1 día
-
type/automation type/tech-debt
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area/assertion needs/triage
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
Los mantenedores suelen responder en 1 día
-
type/automation type/test-gap
Dificultad 3/5 Medio día Aptitud para principiantes 15/100
Los mantenedores suelen responder en 1 día
-
The productive version of Microsoft.Testing.Extensions.HangDump must not reference to a preview version of Microsoft.Diagnostics.NETCore.ClientPosiblemente ocupada @Evangelink la tomó hace 12 días. Abiertoarea/dump external/other
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
microsoft/testfx#11981 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/testfx
Issues similares
-
[P2] Interpreter: Array.prototype.findLastIndex starts at the wrong index for long array-likesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RicoSuter/Namotion.Interceptor#918 ·
Los mantenedores suelen responder en 1 día
-
area-integrations
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Sample solution restore fails with NU1109 (Microsoft.Extensions.Logging.Abstractions downgrade)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
ardalis/CleanArchitecture#1150 ·
Los mantenedores suelen responder en 1 día