This is a migrated thread and some comments may be shown as answers.

"No tests to execute" from mstest

8 Answers 452 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Iris
Top achievements
Rank 1
Iris asked on 24 Nov 2015, 01:15 AM

I have a visual studio project that contains a test studio web test.  The test contains coded step.

The project builds.  In Visual studio, I can run it either by

1) highlighting the test file (.tstest), then click on the green play icon to execute the test

2) Select visual studio Test menu, then run -> all test

Either way the test runs and passes.

 

However, when I try to run it from mstest using

%mstest /testcontainer:fullpath\TestStudioProject1.dll

 

I get "No test to execute".

 

What am I missing in the project?

8 Answers, 1 is accepted

Sort by
0
Iris
Top achievements
Rank 1
answered on 24 Nov 2015, 01:34 AM

Well, this command got me further -

%%mstest /testcontainer:fullpath\WebTest1.tstest

mstest can find the test, but fails to get the file for deployment item 'bin\TestStudioProject1.dll' specified by the test.

How can I specify that I need the dll deployed?

0
Cody
Telerik team
answered on 25 Nov 2015, 05:13 PM
Hello Iris,

See if this KB article helps, starting with step 7. Make sure that you first navigate to the project's directory.

Let me know if you need further assistance.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Shruti
Top achievements
Rank 1
answered on 01 Jun 2017, 08:39 AM

I have followed all the steps still it is not working

In my case it is showing: 

Loading C:\git\protective-my-hub\Protective.MyHub\UnitTest\bin\Debug\UnitTest.dll...
Starting execution...
No tests to execute.

plz help.. thank u in advance

 

0
Shruti
Top achievements
Rank 1
answered on 01 Jun 2017, 08:44 AM
Here I have attached screenshot of cmd
0
Aaron
Top achievements
Rank 1
answered on 01 Jun 2017, 11:20 AM

To me it looks like you're trying to execute a .dll.

You should be trying to execute a *.tstest (a singular test) or *.vsmdi (a test list) in that MSTest command. At least, as far as I could understand the linked article above.

Based on the fact that you're using /testcontainer, I'll assume you're trying to execute a single test, in which case it should be the file path to the single test you want to run in that command, instead of to the .dll.

0
Nikolay Petrov
Telerik team
answered on 06 Jun 2017, 08:04 AM
Hi Shruti,

As pointed out by Aaron - try to execute a test not a dll file by following the directions in the article provided by Cody.

I hope that would help in this case.

Regards,
Nikolay Petrov
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Joshua
Top achievements
Rank 1
answered on 04 Jun 2018, 03:27 PM
For me there is no .tstest or or .vsmdi. Only dll's (and a few non testable things like .pdb). What do I have to do to generate a .tstest file?
0
Vera
Telerik team
answered on 05 Jun 2018, 12:32 PM
Hello Joshua,
  
Thank you for contacting us.

When you Create a new test project with Test Studio it will automatically generate .tstest file and you will be able to execute it. 

Let us know if you need further assistance.

Regards,
Vera
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Iris
Top achievements
Rank 1
Answers by
Iris
Top achievements
Rank 1
Cody
Telerik team
Shruti
Top achievements
Rank 1
Aaron
Top achievements
Rank 1
Nikolay Petrov
Telerik team
Joshua
Top achievements
Rank 1
Vera
Telerik team
Share this question
or