How to Print List of Tests (Test Methods) in Visual Studio Test Project

How to Print List of Tests (Test Methods) in Visual Studio Test Project

Table of Contents

Introduction

    Have you come across any requirement to get/ print the list of all the automated tests in your test project? Each automated test is marked with attribute TestMethod in classes with attribute TestClass in a Test Project.
    Microsoft Visual Studio 2010 does not provide direct option to print the list of test methods. Test View window can be used to get the complete list. It is also possible to copy the details from Test View grid. So these details can be pasted to any document/sheet and then be printed.

Steps

  • Open Microsoft Visual Studio.
  • Open Test project in the Visual Studio.
  • Open Test View window in Visual Studio (Test Menu -> Windows -> Test View).
  • Customize the required columns, column order, grouping and sort order of tests in Test View. See How to: Customize Test Views.
  • Select the tests in the Test View window grid that you want to Copy (Ctrl + A for all test methods).
  • Copy the test methods list (Right Click -> Copy).
  • Paste the list to Notepad/ Microsoft Office Excel Worksheet/ Microsoft Office Word.

See Also

Leave a Comment
  • Please add 3 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 7. Comment: Removed tags "Microsoft Visual Studio 2010" and "MS", changed tag "VS 2010" to "Visual Studio 2010"

  • Richard Mueller edited Revision 6. Comment: Remove blank headings in HTML to fix TOC

  • Ed Price - MSFT edited Revision 3. Comment: Updated headers to H1 for formatting

  • Ed Price - MSFT edited Revision 2. Comment: Added tags. Added to See Also section.

  • TejasJ edited Revision 1. Comment: Justify.

  • TejasJ edited Original. Comment: minor changes

Page 1 of 1 (6 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • TejasJ edited Original. Comment: minor changes

  • TejasJ edited Revision 1. Comment: Justify.

  • Ed Price - MSFT edited Revision 2. Comment: Added tags. Added to See Also section.

  • Ed Price - MSFT edited Revision 3. Comment: Updated headers to H1 for formatting

  • Richard Mueller edited Revision 6. Comment: Remove blank headings in HTML to fix TOC

  • Richard Mueller edited Revision 7. Comment: Removed tags "Microsoft Visual Studio 2010" and "MS", changed tag "VS 2010" to "Visual Studio 2010"

  • Wondering if there is a Connect Request to add this? Sounds like a good idea to be able to print that list from the interface.

  • Richard Mueller edited Revision 9. Comment: Removed tags "MS" and "VS", added tag

Page 1 of 1 (8 items)