best
best copied to clipboard
Error: You must provide specifications for the runner in your best config.
I am not able to get a simple benchmark to run successfully following the instructions from Getting Started doc
Steps:
- installed "@best/cli", "@best/runner-headless" (latest versions as of Aug 5)
- added a simple benchmark.js file
- added
best.config.jsas per doc
module.exports = {
projectName: 'sa11y-benchmarks',
testMatch: ['packages/assert/__benchmarks__/rules.benchmark.js'],
};
Running yarn best gives error
$ yarn best
yarn run v1.22.4
$ ./node_modules/.bin/best
Building benchmarks...
Building benchmarks...
Building benchmarks...
DONE (sa11y-benchmarks) packages/assert/__benchmarks__/rules.benchmark.js
Running benchmarks...
QUEUED (sa11y-benchmarks) __benchmarks_results__/.../artifacts/rules.benchmark.html
ERROR Error: You must provide specifications for the runner in your best config.
at runBenchmarksBundle (./node_modules/@best/runner/build/index.js:15:15)
at Object.runBenchmarks (./node_modules/@best/runner/build/index.js:41:40)
at Object.runBest (./node_modules/@best/cli/build/run_best.js:100:49)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runCLI (./node_modules/@best/cli/build/cli/index.js:116:25)
at async Object.run (./node_modules/@best/cli/build/cli/index.js:66:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Tried adding the following to best.config.js but the error persists
runner: '@best/runner-headless',runnerConfig: [{ runner: '@best/runner-headless' }],runnerConfig: [{ runner: '@best/runner-headless', benchmarkRunnerConfig: {} }],
Looks like something like specs: { name: 'chrome.headless', version: 80 }, is mandatory in best.config.js