Skip to the page

Frameworks and CI · mid

Useful reports and secrets in test repos

A report must help someone fix a failure fast. A secret in a repo is a leak even if you delete the line.

The notes

What you must know

  • A good failure shows the steps, the error, a screenshot, a video or trace, console and network errors, the API request and response with secrets masked, the test data, the environment, the build and the time.
  • Allure supports steps, attachments, categories that label failures by message (environment, locator changed, likely product bug), history and links to Jira.
  • Count retried tests as flaky, not as passes.
  • A report needs an owner who reads it each morning.
  • If a password or key is in the repo, treat it as leaked. Rotate it now with its owner and check access logs.
  • Deleting the line in a new commit leaves the secret in git history and in every clone. Rotation is what makes it safe. Rewriting history comes after, as clean-up.
  • Tell the team lead and the security owner quickly and plainly, with no blame.
  • Secrets come from environment variables injected by the CI secret store or a vault. Local runs use a git-ignored .env file with a committed .env.example. Add secret scanning to prevent it again.

The red pen

Common traps: mistake → fix

  • Mistake: It is only staging so it is fine

    Fix: staging secrets often open real systems.

  • Mistake: Delete the line and it is gone

    Fix: it stays in history.

  • Mistake: Rewrite history before rotating

    Fix: rotation comes first.

  • Mistake: A report with only Failed and a stack trace is enough

    Fix: add evidence and a category.

Easy to hard

Questions interviewers ask, easy to hard

  1. You find a staging admin password in the test repo. What do you do, in order?
  2. What should a test report contain for each failure?
  3. How do you keep secrets out of a test framework?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview