OxL Reference

fn oxlAbRun

Runs the experiment spec on its recorded traffic; prints the comparison and fails the test on a violated guard.

Example:

oxl✓ checked in CI
test ab "search v2" {
  variant a = current
  variant b = candidate
  split by .User 50/50
}
pub(api) fn oxlAbRun(spec: str)

Since. 1.0.0-beta

Parameters

NameType
specstr

Errors

panics when a guard of the experiment is violated.

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/testing.oxl:456

See also