Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 325785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:14:56+00:00 2026-05-12T09:14:56+00:00

Similarly to How to use MsTest in Continuous Integration without VS? , I want

  • 0

Similarly to How to use MsTest in Continuous Integration without VS?, I want to run mstest.exe on a TeamBuild server.

My context is Trapping Error Status in MSBuild – i.e., I’m only trying to use mstest.exe /publish to upload the results in to the TFS repository. Thus the full rigmarole in http://www.shunra.com/shunrablog/index.php/2009/04/23/running-mstest-without-visual-studio/ is (you’d hope) likely to be overkill, esp as MSTEST.exe, as covered in http://social.msdn.microsoft.com/Forums/en-US/tfsgeneral/thread/e4575890-8f88-413c-a7f3-0d09d3b9cb01 suggests all I need to do is install Team Explorer.

I’ve installed VS2008 Team Explorer SP1, and mstest.exe /? still isnt telling me about the publish options.

Recall that it says only Team Explorer is required of mstest.exe /? for publishing:

The following options are also available if Team Explorer is installed:

/publish:[server name] Publish results to the Team Foundation
Server.

/publishbuild:[build name] The build identifier to be used to publish
test results.

/publishresultsfile:[file name] The name of the test results file to
publish. If none is specified, use the
file produced by the current test run.

/teamproject:[team project name] The name of the team project to which the
build belongs. Specify this when publishing
test results.

/platform:[platform] The platform of the build against which
to publish test results.

/flavor:[flavor] The flavor of the build against which
to publish test results.

I’m going down the procmon.exe path to figure out what’s missing, but ideally someone in the know would step in and answer:-

Should mstest.exe /publish only require Team Explorer as stated, or does it require VSTT and Team Explorer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T09:14:57+00:00Added an answer on May 12, 2026 at 9:14 am

    The /publish option of MSTest.exe does a license check to ensure that a “Team” version of Visual Studio is installed (i.e. the Developer or Test edition) before it does the publish part of the code.

    This restriction appears to have been introduced to allow the basic unit testing capabilities in standard versions of Visual Studio but requires you to have one of the more expensive Team editions of Visual Studio to enable the “Team” related features in testing – such as to publish your test results to TFS.

    In total there are 3 missing features if you do not have a Team edition of Visual Studio with Team Epxlorer installed.

    • Publishing to TFS
    • Code coverage
    • Connect to remote agent.

    If you have the Development Edition installed then you get publish and codecoverage but not the remote agent agent capabilities (i.e. for doing Load lesting).

    The Test Edition and Visual Studio Team Suite have everything.

    If you would like to see an example of a custom MSBuild task that uses MSTest.exe to publish unit test data from a build server (in this example JUnit test data), then take a look at the Teamprise Build Extensions that I wrote. The source code for these is available under the permissive MS-PL open source license.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my project we use UnitTests (MsTest). We run them manually and in the
I'm trying to use a generator with a Python class that works somewhat similarly
I want to use string similarity functions to find corrupted data in my database.
I have checked similarly named questions, but they don't answer this use case. Basically,
I use Jquery in my page to hide buttons which i dont want to
I want to use a Tab bar in one of the view for my
When writing an htmlhelper extension if I want to support the similarly structured ctors
We use Visual Studio 2010 Ultimate with tests written in MSTest. Both our unit
I am trying to use R to perform an operation (ideally with similarly displayed
I use Silverlight 4.0 and have got problems with ComboBox control. I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.