Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests with Deployment Item do not run. #91

Closed
AbhitejJohn opened this issue Feb 28, 2017 · 1 comment
Closed

Tests with Deployment Item do not run. #91

AbhitejJohn opened this issue Feb 28, 2017 · 1 comment
Milestone

Comments

@AbhitejJohn
Copy link
Contributor

AbhitejJohn commented Feb 28, 2017

Description

A test with a DeploymentItem attribute does not work.

Steps to reproduce

  1. Add a "DeploymentItem" on a test method with a resource file to deploy.
  2. Run the test.

Expected behavior

The test should drop all the binaries to the deployment directory and run tests.

Actual behavior

The tests do not run with the following message in the "Tests" tab:

An exception occurred while invoking executor 'executor://mstestadapter/v2': Could not load file or assembly 'Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Environment

VS IDE. Works fine from commandline.
MSTest.TestFramework 1.1.11
MSTest.TestAdapter 1.1.12

@AbhitejJohn
Copy link
Contributor Author

AbhitejJohn commented Mar 1, 2017

Adding the following line on the test class having the deployment item test is a workaround:
[DeploymentItem("Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll")]

@AbhitejJohn AbhitejJohn modified the milestone: S115 Mar 5, 2017
singhsarab pushed a commit to singhsarab/testfx that referenced this issue Apr 8, 2019
* Add multiple sign tasks for each platform.
* Fix path to Microsoft.TestPlatform.Build for signing.
* Add script to verify signing.
* Add quality tools files regex.
* Write to stderr on failure.
* Add datacollector executables to assemblies pattern.
* Make certificate a parameter to verify script.
* Add signing for datacollector assemblies. Mark assembly as signed if they are signed with prod certs.
* Add desktop trxlogger to sign assemblies.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant