CAREER GROWTH

Building a Test Automation Portfolio That Gets Interviews

Most test automation portfolios I look at have the same problem: they're collections of passing tests rather than evidence of engineering judgement. Someone reviewing your GitHub profile isn't going to count assertions. They want to see why the suite is shaped the way it is, what trade-offs you made, and whether you could own a test framework on a real team.

That bar has moved. Anyone can now ask an AI assistant for a few hundred lines of plausible pytest or Cucumber code, so a repository full of tests proves less than it used to. What still stands out is the part an assistant can't fake for you: choosing what to test, explaining why, catching the places where generated code is wrong, and showing that you can direct an agent rather than just accept whatever it produces.

Here's how I'd build a portfolio with that in mind: which projects to include, how to document them so your decisions are visible, how to show your AI-assisted workflow honestly, and the mistakes that quietly sink otherwise good repositories.

Build an API Automation Framework With Node.js

Learn Node.js, Cucumber, GitHub Copilot, APIs, CI/CD, and modern automation by building a complete framework.

Learn more

What projects actually belong in the portfolio

Two or three focused projects beat ten shallow ones. I'd aim for a set that shows range without spreading thin:

  • An API test suite against a real, public or self-hosted API. Positive and negative cases, auth handled properly, schema checks, data setup and teardown, and a CI workflow that runs it. This is the core piece for most automation roles.
  • A BDD project if the roles you want mention Behave, Cucumber or acceptance criteria. Show feature files a non-engineer could read and step definitions that stay reusable.
  • One project that shows quality work on an AI feature or an agent workflow. This is the newer piece, and I'll come back to it below.

Pick a domain with some real rules in it: orders, bookings, a library system. A to-do API with four endpoints doesn't give you anything to reason about. If you're building something from scratch, turning a side project into a testing portfolio piece walks through choosing and scoping one.

Structure and document repos so decisions are visible

The README is the most important file in the repository, because it's the one people actually read. Mine follow roughly this outline:

# Orders API test suite

## What this tests and why
Scope, the risks I prioritised, and what I left out on purpose.

## How to run it
One command locally, and a link to the CI workflow.

## Design decisions
- Why pytest for regression and Behave for acceptance
- How test data is created and cleaned up
- How auth tokens are handled without being committed

## How AI tools were used
What I used an assistant for, what I reviewed, and what I rejected.

## Known gaps and next steps

"Known gaps" is the section people skip, and it's one of the most persuasive. It shows you understand coverage as a set of choices rather than a number.

The code layout should tell the same story. A clean split between the API client, fixtures, test data and tests says more about your design sense than any README claim:

tests/
  api_client.py
  conftest.py
  data/
  api/
    test_orders.py
    test_orders_negative.py
  contracts/
features/
  orders.feature
  steps/
.github/
  workflows/api-tests.yml
  copilot-instructions.md

Keep a readable commit history too. Small commits with messages that explain why are a direct preview of how you'd work on a team.

Show how you work with AI agents, honestly

Hiding AI use doesn't work and isn't necessary. Teams want people who can use these tools well. What makes a portfolio stronger is showing control over them:

  • Commit an instructions file. A .github/copilot-instructions.md, or the equivalent for the agent you use, with your test conventions in it shows you know how to steer an assistant across a whole repository.
  • Keep the review visible. Merge agent-written changes through pull requests, and leave your review comments in place. A comment like "this asserts on the current response, not the documented behaviour; changed to check the status transition" shows judgement better than any bullet point on a CV.
  • Write down what you rejected. A short section on generated tests you threw away, and why, demonstrates exactly the skill that matters now.

The AI-focused project can be small. A good option is a test suite for a feature that calls a language model, such as a summariser or a classifier behind an API. Because the output varies between runs, plain equality assertions don't work. Show that you know that:

import pytest

LABELS = {"billing", "technical", "account"}


@pytest.mark.parametrize("ticket, expected", [
    ("I was charged twice this month", "billing"),
    ("The app crashes when I upload a file", "technical"),
    ("How do I change my email address?", "account"),
])
def test_classifier_is_consistent(classify, ticket, expected):
    runs = [classify(ticket) for _ in range(5)]
    assert all(label in LABELS for label in runs), runs
    assert runs.count(expected) >= 4, runs

Here classify is a fixture wrapping whatever model call your app makes, which keeps the test provider-neutral. The test checks two separate things: every output is a valid label, and the right label wins most runs. The README is where you explain the threshold you chose and why it's a heuristic rather than a guarantee. That kind of reasoning is what separates a thoughtful portfolio from a generated one.

Common mistakes that quietly kill your chances

  • Tests that can't fail. Assertions on status_code only, or on keys being present. Reviewers notice.
  • Secrets in the history. A token committed once and deleted later is still in the history. Use environment variables and a .env.example file from day one.
  • No CI. A suite that only runs on your laptop tells the reader nothing about whether it actually runs.
  • Tutorial clones. A copy of a course project with the same names and data. Extend it, change the domain, or add something the tutorial didn't cover.
  • A wall of generated code with no review trail. Lots of tests, one giant commit, no explanation. It now reads as "asked an assistant and pushed".
  • Stale repos. Broken badges and failing pipelines at the top of the README. Fix them or remove them.

When you get the interview, the portfolio becomes your script: you'll be asked why you made the choices you made. I cover how to talk through that in talking about test automation work in a technical interview, and the broader path in my career guide for testers moving into automation.

A portfolio that gets interviews shows decisions, review and honesty about gaps, including how you work with AI tools. If you'd like a structured project to build from, my API testing courses take you through a complete suite with VS Code and GitHub Copilot, which makes a solid foundation to extend into your own piece.