Developer Workflows for Testers: VS Code, Git, GitHub and AI
The fastest testers I've worked with aren't the ones who type fastest. They're the ones whose tools are set up so the boring parts disappear: one keystroke runs the right tests, every change sits on a branch, every pull request runs the suite, and nothing depends on remembering a command from three weeks ago.
That workflow is the same one developers use: an editor, Git and a hosting platform with CI. For most of the teams I see, that means VS Code, Git and GitHub. Testers who adopt it stop being the people who receive a build and start being people who contribute to the same codebase, through the same review process.
There's now a third participant in that workflow. GitHub Copilot and other coding agents sit inside the editor and, increasingly, open pull requests of their own. This guide covers the setup I recommend for test automation work, and how to bring agents into it so they make you faster without quietly changing what your tests check.
Smarter API Test Automation — Python, Behave, VS Code, AI with GitHub Copilot & CI/CD Pipelines. Complete in a Weekend!
Set up VS Code for test work, not just for editing
A fresh VS Code install is a text editor. A few deliberate choices turn it into a test workbench:
- Language support and the test explorer. The Python extension (or the JavaScript tooling for Node) discovers pytest or Jest tests and lets you run or debug a single test from the gutter.
- A Gherkin extension if you write Behave or Cucumber features, so step definitions are navigable from the scenario.
- An HTTP client inside the editor for poking at an endpoint before you automate it.
- The debugger. Setting a breakpoint in a failing API test and inspecting the response object beats adding print statements every time.
I keep the extension list short on purpose. Every extension is something else that can slow the editor or fight with another one. My shortlist and why each earns its place is in VS Code extensions that speed up API testing.
Then commit the workspace settings that matter to the team in .vscode/, so everyone runs tests the same way. A task for your most common command is the single biggest time saver:
{
"version": "2.0.0",
"tasks": [
{
"label": "API smoke tests",
"type": "shell",
"command": "pytest -m smoke -q",
"group": "test",
"problemMatcher": []
}
]
}
That file goes in .vscode/tasks.json. Run it from the command palette or bind it to a key. I walk through the details in turning a VS Code task into a one-click test runner.
Git habits that keep a test suite healthy
You don't need advanced Git to work well. You need a handful of habits applied every time:
- One branch per change. A new test, a fixture refactor and a dependency bump are three branches, not one.
- Small commits with real messages. "Add 409 test for duplicate order submit" tells the next person (and an agent reading history) what changed and why. "Fix tests" tells them nothing.
- Pull before you branch. Most merge pain comes from branching off a stale main.
- Read the diff before you commit.
git diff --stagedcatches the debug print, the hardcoded URL and the token you pasted to test something.
git switch main
git pull
git switch -c add-order-conflict-tests
# write and run the tests
git add tests/api/test_orders.py
git diff --staged
git commit -m "Add 409 test for duplicate order submit"
git push -u origin add-order-conflict-tests
Secrets deserve their own rule. Test credentials belong in environment variables, a local untracked .env listed in .gitignore, and your CI secret store. Once a secret is pushed it stays in history even after you delete the file, so it has to be rotated. More in keeping test secrets out of version control history.
GitHub: pull requests and CI as the quality gate
GitHub is where the workflow becomes a team process. Two features matter most for testers.
Pull requests. Test code deserves the same review as product code. A reviewer should be able to answer: what behaviour does this test protect, and would it fail if that behaviour broke? Small pull requests make that question answerable.
GitHub Actions. Every pull request should run the tests automatically. A minimal workflow for a Python API suite looks like this:
name: api-tests
on: [pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements.txt
- run: pytest -m smoke --junitxml=results.xml
env:
API_BASE_URL: ${{ vars.API_BASE_URL }}
API_CLIENT_SECRET: ${{ secrets.API_CLIENT_SECRET }}
Run a fast tagged subset on every pull request and the full suite on merge or on a schedule. Protect the main branch so a failing check blocks the merge. That one setting does more for suite health than any amount of process documentation.
Bringing Copilot and coding agents into the workflow
This is where the workflow has changed most. In VS Code, Copilot offers inline completions, a chat panel and an agent mode that can edit several files and run commands. Other agents, such as Claude Code and Cursor, work in a similar way. On GitHub, coding agents can be assigned an issue and come back with a pull request.
All of that fits the workflow above, as long as you keep the same gates for agent work that you keep for human work. The rules I use:
- Agents work on branches, never on main. Their output arrives as a pull request like anyone else's.
- CI runs on agent pull requests too. Green CI is necessary, not sufficient.
- A human approves every merge. Branch protection with a required review enforces this without relying on memory.
- Tests and product code changes are reviewed separately. If an agent changed both the code and the test that checks it in the same pull request, I read the test diff with extra suspicion. The easiest way to make a failing test pass is to change what it expects.
Agents also need context, and the repository is where to put it. Copilot reads .github/copilot-instructions.md for repository-wide guidance, and most other agents have an equivalent instructions file. For a test repository, mine covers how to run tests, where things live and what not to do:
## Running tests
- Smoke: pytest -m smoke Full: pytest
- Never call production. Base URL comes from API_BASE_URL.
## Conventions
- Fixtures for auth and clients live in tests/conftest.py. Reuse them.
- New API tests go in tests/api/, one file per resource.
## Do not
- Do not weaken or delete an assertion to make a test pass; report the failure.
- Do not commit .env files, tokens or captured responses containing real data.
That file is also useful for new human team members, which is a good sign it's written at the right level.
Reviewing agent-written changes efficiently
When an agent can produce a pull request in minutes, review time becomes the bottleneck. A few habits keep it manageable:
- Ask for small changes. "Add negative tests for POST /orders" produces a reviewable pull request. "Improve test coverage" doesn't.
- Read assertions first. For each new test, find the line that would fail if the feature broke. No such line means no test.
- Run it locally once and break it on purpose. Change an expected value or point the test at a wrong ID and confirm it fails. A test that can't fail is decoration.
- Check what it touched outside tests. Config, CI files and dependencies changed by an agent deserve a deliberate look.
A small team habit helps here: label agent-authored pull requests. It makes it easy to look back later at how much of that work needed rework, which tells you where agents are helping and where they need better instructions.
Small habits that add up
- Learn the shortcuts for the command palette, quick file open, go to definition and run test. They pay off within a week.
- Keep a project-level snippets file for the test patterns you type repeatedly.
- Turn long command lines into tasks or a short script in the repository so nobody has to remember flags.
- Keep the README's "how to run the tests" section accurate. Humans and agents both read it.
None of this is glamorous, and that's the point. When the editor, Git and CI do the routine work, you spend your attention on what to test and on reviewing what was written, including what an agent wrote. If you want to set this up from scratch alongside a real API suite, my courses build the whole thing in VS Code with GitHub Copilot, in Python with Behave or Node with Cucumber.