Skip to main content

Manage Generated Test Files

TestVibe stores test intent and generated automation in your project.

Feature files are the readable source of truth. Generated Playwright files are the executable output.

A tour of the files behind a test: the feature file and the generated spec in Code, how group and feature names become paths, when to regenerate rather than edit, where the files are mirrored in Settings → Repositories, and what to check when files look missing.

Test files and application source​

Your test files and the application source serve different purposes:

CorpusWhat it isWhere it's managed
Test FilesThis project's own features, groups, and generated Playwright specs/configs — everything covered on this page.Lives in this TestVibe project; optionally mirrored two-way to a Git repo via Settings → Repositories.
ApplicationThe application under test's source, read as context; proposed source changes are reviewed separately. TestVibe reads it to ground Assistant generation and map coverage.A separate repository connected via Settings → Repositories; browsed in the Application section of the app.

Connecting an application source repository does not automatically mirror test files into it. Configure test-file sync separately and review its target repository and permissions.

Main File Types​

File typePurpose
.featureReadable Gherkin test intent.
.mdTest instructions authored in Markdown.
.js or .ts Playwright testGenerated browser automation that can be run.
Playwright configurationBrowser, viewport, reporter, and execution settings.
TestVibe settingsProject defaults such as framework, agent, and configuration.

Start with the Gherkin or Markdown instructions and let TestVibe generate the Playwright code.

Where Files Live​

Feature files usually live under Features/.

Example structure:

Features/
Auth/
Login.feature
Login.spec.js
Billing/
DownloadInvoice.feature
DownloadInvoice.spec.js
Configurations/
Default.config.js

Your project may use .ts instead of .js depending on project setup.

How Names Affect Paths​

Group and feature names influence project file paths.

TestVibe actionProject effect
Create group AuthCreates or uses Features/Auth/.
Add feature Login in AuthCreates Features/Auth/Login.feature.
Rename featureUpdates its name and exported feature path; inspect associated files and external references.
Move featureChanges its group and exported folder path.
Generate codeCreates or updates the Playwright file associated with the feature.

Use clear names early. Renaming later is supported when available, but it changes project file paths.

Regenerate Or Edit​

SituationRecommended action
The behavior changedEdit the .feature file and regenerate.
The expected outcome changedEdit the .feature file and regenerate.
The generated code has a small selector issueEdit code or improve Gherkin and regenerate.
The code uses the wrong journeyImprove the Gherkin and regenerate.
The test uses a shared helperEdit generated code if your team owns that pattern.

Regeneration may replace manual code changes. If you manually edit generated code, make sure your team knows which changes should be preserved.

Keep Files Reviewable​

  • Keep feature names aligned with user behavior.
  • Keep generated files near their source feature when possible.
  • Review generated code before relying on it for important flows.
  • Run one test after generation before running a whole group.
  • Update Gherkin when product behavior changes.

If Files Look Missing​

Check:

  • the selected project
  • whether generation completed successfully
  • whether the feature is under the expected group
  • whether the generated code tab is available for the selected feature
  • whether the run completed before saving generated output

See Troubleshoot failed generation if generation did not finish.