playwright-benchmark.config.js 615 B

12345678910111213141516171819202122232425262728
  1. // Copyright (c) Jupyter Development Team.
  2. // Distributed under the terms of the Modified BSD License.
  3. var baseConfig = require('./playwright.config');
  4. module.exports = {
  5. ...baseConfig,
  6. projects: [
  7. {
  8. name: 'benchmark',
  9. testMatch: 'test/benchmark/**'
  10. }
  11. ],
  12. reporter: [
  13. [process.env.CI ? 'dot' : 'list'],
  14. [
  15. '@jupyterlab/galata/lib/benchmarkReporter',
  16. { outputFile: 'lab-benchmark.json' }
  17. ]
  18. ],
  19. use: {
  20. ...baseConfig.use,
  21. video: 'off',
  22. baseURL: process.env.TARGET_URL ?? 'http://127.0.0.1:8888'
  23. },
  24. preserveOutput: 'failures-only',
  25. workers: 1
  26. };