Netlify Integration

Automatically run Bug0 tests when Netlify deployments complete.

Features

Netlify integration provides:

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:

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

Production Deploys

Created when:

URL: Your configured domain

Test Configuration

What Gets Tested

When triggered by Netlify:

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:

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:

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:

Monitor Production

Also run on production deploys:

Combine with GitHub

Connect both integrations: