From d7c928c62b53e2cda72ae4e7cbbba0480a3b01d0 Mon Sep 17 00:00:00 2001 From: Test Date: Mon, 16 Dec 2024 09:41:48 -0800 Subject: [PATCH] docs: update testing docs --- .github/pull_request_template.md | 6 +++--- CONTRIBUTING.md | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4e7157e67..5b248d5d8 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -5,12 +5,12 @@ ## Checklist - [] The relevant docs, if any, have been updated or created +- [] The relevant tests, if any, have been updated or created ## Screenshots [ For visual changes, include screenshots. ] -## Testing +## Testing instructions -[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change. ] -[ For new UI features, ensure that the changes look good across viewport widths, light/dark theme, etc ] +[ For new or modified features, provide step-by-step testing instructions to validate the intended behavior of the change, including any relevant tests to run. ] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c2d8bb49d..ca26d38fe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -15,11 +15,12 @@ - [🧑‍💻 Contributing Code](#-contributing-code) - [Environment Setup](#environment-setup) - [Pre-requisites](#pre-requisites) - - [Fork the Continue Repository with All Branches](#fork-the-continue-repository) + - [Fork the Continue Repository](#fork-the-continue-repository) - [VS Code](#vs-code) - [Debugging](#debugging) - [JetBrains](#jetbrains) - [Our Git Workflow](#our-git-workflow) + - [Testing](#testing) - [Formatting](#formatting) - [Writing Slash Commands](#writing-slash-commands) - [Writing Context Providers](#writing-context-providers) @@ -143,7 +144,13 @@ See the [`CONTRIBUTING.md`](./extensions/intellij/CONTRIBUTING.md) for the JetBr ### Our Git Workflow -We keep a single permanent branch: `main`. When we are ready to create a "pre-release" version, we create a tag on the `main` branch titled `v0.9.x-vscode`, which automatically triggers the workflow in [preview.yaml](./.github/workflows/preview.yaml), which builds and releases a version of the VS Code extension. When a release has been sufficiently tested, we will create a new release titled `v0.8.x-vscode`, triggering a similar workflow in [main.yaml](./.github/workflows/main.yaml), which will build and release a main release of the VS Code extension. Any hotfixes can be made by creating a feature branch from the tag for the release in question. This workflow is well explained by http://releaseflow.org. +We keep a single permanent branch: `main`. When we are ready to create a "pre-release" version, we create a tag on the `main` branch titled `v0.9.x-vscode`, which automatically triggers the workflow in [preview.yaml](./.github/workflows/preview.yaml), which builds and releases a version of the VS Code extension. When a release has been sufficiently tested, we will create a new release titled `v0.8.x-vscode`, triggering a similar workflow in [main.yaml](./.github/workflows/main.yaml), which will build and release a main release of the VS Code extension. Any hotfixes can be made by creating a feature branch from the tag for the release in question. This workflow is well explained by . + +### Testing + +We have a mix of unit, functional, and e2e test suites, with a primary focus on functional testing. These tests run on each pull request. If your PR causes one of these tests to fail, we will ask that you resolve the issue before we merge. + +When contributing, please update or create the appropriate tests to help verify the correctness of your implementaiton. ### Formatting