mirror of
https://github.com/nasa/openmct.git
synced 2024-12-25 07:41:06 +00:00
fce98a1c47
* refactor: move package.json to type: module this is where the fun begins * chore: move webpack common and prod to esm * chore: move webpack to esm, eslint to explicit cjs * refactor: migrate all files to esm * style: lint * refactor: begin moving karma to cjs, use dynamic esm import * refactor: move index-test to cjs * refactor: begin moving e2e to ESM this was manual. I'm committing this because I'm about to try the `cjstoesm` tool * refactor: move all to esm * fix: make all e2e tests use .js imports * refactor: begin moving exports to esm * refactor: use URL transforms instead of __dirname * fix: use libraryExport: default to properly handle openmct * fix: export all playwright configs as modules * refactor: move all instances of __dirname to import.meta.url * refactor: lint, drop unnecessary URL call * fix: use correct URL path on helper/addNoneditableObject.js * fix: more incorrect URL resolve issues * fix: parse json after reading it
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
// playwright.config.js
|
|
// @ts-check
|
|
|
|
/** @type {import('@playwright/test').PlaywrightTestConfig} */
|
|
const config = {
|
|
retries: 1, //Only for debugging purposes for trace: 'on-first-retry'
|
|
testDir: 'tests/performance/',
|
|
testMatch: '*.contract.perf.spec.js', //Run everything except contract tests which require marks in dev mode
|
|
timeout: 60 * 1000,
|
|
workers: 1, //Only run in serial with 1 worker
|
|
webServer: {
|
|
command: 'npm run start', //need development mode for performance.marks and others
|
|
url: 'http://localhost:8080/#',
|
|
timeout: 200 * 1000,
|
|
reuseExistingServer: false
|
|
},
|
|
use: {
|
|
browserName: 'chromium',
|
|
baseURL: 'http://localhost:8080/',
|
|
headless: true,
|
|
ignoreHTTPSErrors: false, //HTTP performance varies!
|
|
screenshot: 'off',
|
|
trace: 'on-first-retry',
|
|
video: 'off'
|
|
},
|
|
projects: [
|
|
{
|
|
name: 'chrome',
|
|
testIgnore: '*.memory.perf.spec.js', //Do not run memory tests without proper flags. Shouldn't get here
|
|
use: {
|
|
browserName: 'chromium'
|
|
}
|
|
}
|
|
],
|
|
reporter: [
|
|
['list'],
|
|
['junit', { outputFile: '../test-results/results.xml' }],
|
|
['json', { outputFile: '../test-results/results.json' }]
|
|
]
|
|
};
|
|
|
|
export default config;
|