You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improved testing options
* Review feedback
* Fix typo
* Slight tweaks
* Allow multiple browsers or metrics
* Add e2e test
* Test action
* Revert test
* Revert properly
* Chrome tests
* Inly unit tests for now
* Retry Chrome tests
* Comment
* Disable gpu
* Try some mroe options
* One more try
* Onre more, one more try
* Give up, leave to just unit tests
* Rename test to make clear
* Try MacOS
* Set screensize
* More tests
* Set better standard size
* Plit out tests
* Revert back to one file
* Fix flakey test
* More flakiness
* didn'\t need visibility change
* Machines
* Firefox to MacOS
* Make command line flags case insensitive
* Revert test change
* Add rAF
* Fixup CLS tests
* Fix one genuine 0
* Add await
* Clear beacons
* Add another await
* More gte to gt
* strictEquals
* Clean up
* See if equals now works
---------
Co-authored-by: Philip Walton <[email protected]>
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,26 @@ use GitHub pull requests for this purpose. Consult
22
22
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
23
23
information on using pull requests.
24
24
25
+
## Testing
26
+
27
+
To test the full suite run `npm run test`.
28
+
29
+
To test a subset of browsers or metrics, run the following in separate terminals:
30
+
31
+
-`npm run watch`
32
+
-`npm run test:server`
33
+
-`npm run test:e2e -- --browsesr=chrome --metrics=TTFB`
34
+
35
+
The last command can be replaced as you see fit and include comma, separated values. For example:
36
+
37
+
-`npm run test:e2e -- --browsesr=chrome,firefox --metrics=TTFB,LCP`
38
+
39
+
To run an individual test, change `it('test name')` to `it.only('test name')`.
40
+
41
+
You can also add `await browser.debug()` lines to the individual test files to pause execution, and press `CTRL+C` in the command line to continue the tests.
42
+
43
+
See the https://webdriver.io/ for more information.
44
+
25
45
## Community Guidelines
26
46
27
47
This project follows [Google's Open Source Community
0 commit comments