Changelog

New features, improvements and upcoming releases in Calibre.

Subscribe to updates:

New featureSingle Page Tests

Block requests to specific hosts in Single Page Tests

Ben Schwarz
Ben Schwarz

Following on from Host Blocking for Test Profiles, we have now extended the same capability to Single Page Tests.

As part of the 6.3.0 release of the calibre npm package, you can now block requests to specified hosts during a Single Page Test using the --blockedHosts flag in the CLI, or via the blockedHosts option in the Node.js API.

1calibre test create https://example.com \
2	--blockedHosts="*.google-analytics.com" \
3	--location=Sydney

The --blockedHosts flag accepts:

  • Specific hosts (e.g.: example.com)
  • Wildcard subdomain patterns (e.g.: *.google-analytics.com)
  • Comma-separated lists
  • JSON arrays
  • Path to a JSON file containing an array of hosts

As part of this release, adblocking support has been removed from Single Page Tests, as previously announced in Host Blocking for Test Profiles.

For more information, see our CLI documentation.