Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.93 KB

CONTRIBUTING.md

File metadata and controls

51 lines (39 loc) · 1.93 KB

Contribution Guidelines

As an open-source project, community contributions are encouraged.

Local Developer Setup

The local development environment consist of the following:

  • node 16.x
  • TypeScript 4.6.3
  • Visual Studio Code
  • PowerShell Core 7.x
# install typescript dependency
npm install -g [email protected]

# compile
cd .\PublishTestPlanResultsV1
npm install
tsc

To execute the mocha tests:

  1. Open VSCode from the \PublishTestPlanResultsV1 folder
  2. Install the "Mocha Test Explorer" extension
  3. Modify the .vscode settings file and adjust the mochaExplorer.env with variables that reflect your environment:
    • SYSTEM_COLLECTIONURI: the URL to your Azure DevOps Organization
    • SYSTEM_ACCESSTOKEN: PAT token to your Azure DevOps Organization
    • ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN: PAT token to your Azure DevOps Organization
    • TEAMPROJECT: the name of an Azure DevOps Project that contains a Test Plan for testing
    • PROJECTID: the guid for the TEAMPROJECT
    • TESTPLANID: the numeric identifier for a Test Plan in your Azure DevOps Project
    • TESTROOTSUITE: the numberic identifier for the top-level suite in the Test Plan
  4. Run the tests, they should all pass.

Prior to checking the changes in, please test out your changes locally:

  1. Compile the extension (tsc)

  2. Set breakpoints where appropriate

  3. Open a command-prompt and start PowerShell Core (pwsh.exe)

  4. Run the supplied PowerShell script:

    cd PublishTestPlanResultsV1
    .\Test-ExtensionLocally.ps1 -DebugMode
  5. Provide the necessary values when prompted or press enter to accept default values. To provide prepopulated answers for these prompts, create environment variables INPUT_<variable-name-in-prompt>.

  6. In VSCode, use > Attach to NodeJs process. Provide the PID that appears in the command-output.