playwright/tests/config
Ross Wollman 541fb39a51
feat(html-reporter): add report context header (#12734)
Resolves #11318.

* Adds `TestConfig.attachments` public API. (We opted to not implement an analog to the async `TestInfo.attach(…)` API.)
* Adds `TestConfig.attachments` to common reporters.
* Dogfoods some git and CI-info inference to generate useful atttachments
* Updates HTML Reporter to include a side bar to present a pre-defined set of attachments (a.k.a git/commit context sidebar)

Here's what it looks like:

<img width="1738" alt="Screen Shot 2022-03-21 at 3 23 28 PM" src="https://user-images.githubusercontent.com/11915034/159373291-8b937d30-fba3-472a-853a-766018f6b3e2.png">

See `tests/playwright-test/reporter-html.spec.ts` for an example of usage (for dogfood-ing only). In the future, if this becomes user-facing, there the Global Setup bit would likely become unnecessary (as would interaction with attachments array); there would likely just be a nice top-level config and/or CLI flag to enable collecting of info.
2022-03-22 16:28:04 -07:00
..
android.config.ts feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
baseTest.ts chore: don't allow importing @playwright/test twice (#11218) 2022-01-06 09:29:05 -08:00
browserTest.ts browser(firefox): roll Firefox to M97 (#12574) 2022-03-07 16:16:42 -08:00
checkCoverage.js feat(download): introduce Download.cancel (#7462) 2021-07-06 09:38:50 +02:00
commonFixtures.ts fix: typos (#11789) 2022-02-01 11:09:41 -08:00
coverage.js chore: sort out base fixtures (#9809) 2021-10-27 08:28:53 -07:00
coverageFixtures.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
default.playwright.config.ts feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
electron.config.ts feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
globalSetup.ts feat(html-reporter): add report context header (#12734) 2022-03-22 16:28:04 -07:00
platformFixtures.ts feat(test runner): replace declare/define with "options" (#10293) 2021-11-18 15:45:52 -08:00
proxy.ts feat(proxy): unify local network proxy behavior (#10719) 2021-12-10 14:01:56 -08:00
remote-server-impl.js chore: migrate to monorepo (#9421) 2021-10-11 16:52:17 +02:00
remoteServer.ts test: remove browserOptions (#9829) 2021-10-27 19:00:06 -07:00
serverFixtures.ts chore: don't allow importing @playwright/test twice (#11218) 2022-01-06 09:29:05 -08:00
testMode.ts feat(remote): make PlaywrightServer work with browserType.connect (#11849) 2022-02-10 16:36:23 -08:00
testModeFixtures.ts feat(remote): make PlaywrightServer work with browserType.connect (#11849) 2022-02-10 16:36:23 -08:00
utils.ts feat(tracing): pack sources to trace on the driver side (#10815) 2021-12-09 17:21:17 -08:00