139
edits
(Adding some WPT info) |
(Adding some mochitest info an try fuzzy query info) |
||
Line 108: | Line 108: | ||
There is a [https://blog.mozilla.org/webrtc/debugging-encrypted-rtp-is-more-fun-than-it-used-to-be/ blog post] covering dumping unencrypted partial RTP and RTCP packets in the logs. This allows one to manipulate those log statements into something that [https://www.wireshark.org/ Wireshark] can read. The command to extract the packet data in the blog is out of date. The logs produced by this module can be quite large, making it easy to identify by file size which child log file(s) contains the dump(s). Use the following command instead <syntaxhighlight lang="sh">TODO</syntaxhighlight>. | There is a [https://blog.mozilla.org/webrtc/debugging-encrypted-rtp-is-more-fun-than-it-used-to-be/ blog post] covering dumping unencrypted partial RTP and RTCP packets in the logs. This allows one to manipulate those log statements into something that [https://www.wireshark.org/ Wireshark] can read. The command to extract the packet data in the blog is out of date. The logs produced by this module can be quite large, making it easy to identify by file size which child log file(s) contains the dump(s). Use the following command instead <syntaxhighlight lang="sh">TODO</syntaxhighlight>. | ||
==Running WebRTC Tests== | ==Running WebRTC Tests== | ||
===Mochitests=== | |||
Running the WebRTC mochitests can be done through <syntaxhighlight lang="bash" inline>mach</syntaxhighlight>. On try WebRTC mochitests are part of the <syntaxhighlight inline>media</syntaxhighlight> sub- suite. They can be run as follows: <syntaxhighlight lang="bash">./mach try fuzzy --query 'mochitest-media'</syntaxhighlight> | |||
===Web Platform Tests=== | ===Web Platform Tests=== | ||
Web Platform Tests can be run locally from <syntaxhighlight lang="bash" inline>mach</syntaxhighlight>. | Web Platform Tests can be run locally from <syntaxhighlight lang="bash" inline>mach</syntaxhighlight>. | ||
<syntaxhighlight lang="bash">./mach wpt testing/web-platform/tests/webrtc</syntaxhighlight> These tests are synced from the main [https://github.com/web-platform-tests/wpt Web Platform Test repository], and likewise our changes are synced from our [https://searchfox.org/mozilla-central/search?q=&path=testing%2Fweb-platform%2Ftests%2Fwebrtc&case=false®exp=false in-tree copy] back to that repository. | <syntaxhighlight lang="bash">./mach wpt testing/web-platform/tests/webrtc</syntaxhighlight> These tests are synced from the main [https://github.com/web-platform-tests/wpt Web Platform Test repository], and likewise our changes are synced from our [https://searchfox.org/mozilla-central/search?q=&path=testing%2Fweb-platform%2Ftests%2Fwebrtc&case=false®exp=false in-tree copy] back to that repository. To run those tests from try one can use the following <syntaxhighlight lang="bash">./mach try fuzzy --query 'wpt'</syntaxhighlight> | ||
One can [https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/testing/web_platform_tests_wptrunner.md run those same tests in Chromium] if one needs to compare behavior between browsers. | One can [https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/testing/web_platform_tests_wptrunner.md run those same tests in Chromium] if one needs to compare behavior between browsers. |
edits