Netlify Integration

Automatically run Bug0 tests when Netlify deployments complete.

Features

Netlify integration provides:

  • Automatic test triggers - Tests run when deploys succeed
  • Deploy preview testing - Test branch deploys
  • Production monitoring - Validate production deploys
  • Automatic URL detection - Bug0 gets the deploy URL

Setting Up Netlify

Step 1: Connect Netlify

  1. Open your project
  2. Go to Project SettingsIntegrationsNetlify
  3. Click Connect to Netlify
  4. Authorize Bug0 to access your Netlify account
  5. Select which Netlify site to connect

Step 2: Configure Triggers

Choose when to run tests:

OptionDescription
Deploy previewsRun on branch/PR deploys
Production deploysRun on production publishes
BothRun on all successful deploys

How It Works

1. You push code or trigger deploy
2. Netlify builds and deploys
3. Deploy succeeds
4. Bug0 receives notification
5. Tests run against deploy URL
6. Results sent to configured channels

Deploy Types

Deploy Previews

Created for:

  • Pull requests
  • Branch builds
  • Deploy previews

URL format: https://deploy-preview-123--yoursite.netlify.app

Production Deploys

Created when:

  • Publishing to production
  • Main branch builds
  • Manual production deploy

URL: Your configured domain

Test Configuration

What Gets Tested

When triggered by Netlify:

  • All published tests run
  • Login suites execute first
  • Cleanup suites execute last

URL Handling

Bug0 automatically uses the Netlify deploy URL, overriding your project's base URL for that run.

GitHub Integration

When both Netlify and GitHub are connected:

  • Tests triggered by Netlify deploy
  • Results posted to PR (via GitHub integration)
  • Commit status updated

Connect both Netlify and GitHub for the complete workflow: Netlify triggers tests, GitHub shows results on PRs.

Managing the Integration

View Connection Status

Go to Project SettingsIntegrationsNetlify to see:

  • Connected Netlify site
  • Recent deploys
  • Integration status

Change Netlify Site

  1. Open Netlify integration settings
  2. Select a different site
  3. Save

Disconnect Netlify

  1. Open Netlify integration settings
  2. Click Disconnect
  3. Confirm

Troubleshooting

Tests Not Triggering

  1. Verify Netlify integration is connected
  2. Check deploy type matches configuration
  3. Verify deploy succeeded (failed builds don't trigger)
  4. Check outgoing webhooks in Netlify settings

Wrong URL Being Tested

  1. Verify Netlify site is correct
  2. Check deploy URL in test logs
  3. Ensure no URL override in API call

Netlify Site Not Listed

  1. Ensure Bug0 has access to the site
  2. Check Netlify account permissions
  3. Try reconnecting the integration

Best Practices

Test Deploy Previews

Run tests on every PR deploy:

  • Validate changes before merge
  • Test in production-like environment
  • Catch integration issues early

Monitor Production

Also run on production deploys:

  • Verify deploy succeeded
  • Catch production-only issues
  • Confirm everything works

Combine with GitHub

Connect both integrations:

  • Netlify triggers tests
  • GitHub shows results on PRs
  • Full CI/CD integration