Skip to content

Development Knowledge Base

Łukasz Mendakiewicz edited this page Jul 25, 2017 · 5 revisions

Please refer to Development Knowledge Base in csoltenborn/GoogleTestAdapter repo for the baseline description. This page describes only the differences present in this fork.

Initial setup

To build the test adapter the following one-time setup steps need to be taken:

  1. Generate build files from templates.
  2. Obtain files dependent on Visual Studio DIA SDK.
  3. (Optional) Build googletest NuGet packages.

Generate build files from templates

  1. Ensure TestAdapterFlavor.props is set to the desired value.
  2. In Visual Studio's "Developer Command Prompt" execute msbuild ResolveTTs.proj.

Obtain files dependent on Visual Studio DIA SDK

The DiaResolver project has additional dependencies on DIA SDK (which is installed with Visual Studio) that need to be resolved as follows:

  1. Build CLR assembly for DIA SDK:
    1. Open Visual Studio's "Developer Command Prompt".
    2. Go to GoogleTestAdapter\DiaResolver\dia2 folder.
    3. Run compile_typelib.ps1 (e.g. invoking powershell -ExecutionPolicy Bypass .\compile_typelib.ps1).
    4. dia2.dll file should be generated.
  2. Copy msdia140.dll from DIA SDK folder in Visual Studio installation directory:
    1. msdia140.dll to GoogleTestAdapter\DiaResolver\x86 folder.
    2. amd64\msdia140.dll to GoogleTestAdapter\DiaResolver\x64 folder.

(Optional) Build googletest NuGet packages

To build the Google Test NuGet packages the following steps need to be taken:

  1. Fetch Git submodules: git submodule init followed by git submodule update.
  2. Restore NuGet Packages for GoogleTestAdapter.sln.
  3. In Visual Studio's "Developer Command Prompt" execute in GoogleTestNuGet directory: powershell .\Build.ps1 -Verbose.