Configuration file
TypeScript
Configure your test config in TypeScript
Empirical can rely on a TypeScript file as config located at empiricalrc.ts
. This file
needs to export a config object as shown below.
We recommend using TypeScript as your code editor can help with type checks and auto-completions out-of-the-box as you edit the config.
Create sample config
Use this shell command to create a sample TS config file which can be edited.
Configuration reference
empiricalrc.ts
The exported configuration object has three high-level properties:
runs
: Use this to define model providersdataset
: Use this to define the scenarios to testscorers
: Use this to define scoring functions