Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test suite for user agents #622

Open
martenrichter opened this issue Nov 30, 2024 · 2 comments
Open

Test suite for user agents #622

martenrichter opened this issue Nov 30, 2024 · 2 comments

Comments

@martenrichter
Copy link

My node.js lib has a set of test for testing client and server behavior.
I have used it in the past to identify bugs in my implementation and to fix bugs in Chromium and Firefox.

The tests are part of the repo and branch:
https://github.com/fails-components/webtransport/tree/fixtestingaug24 ,
But they will eventually become part of the main branch.

You can change to the test directory (you may want to move it out of the workspace so that the web transport package loads precompiled binaries instead of requiring a local build).
If necessary, the local build can be started with "npm run build-debug" or "npm run rebuild-debug."

You can run with node index.js localserver the test webserver and access it via:
http://localhost:6060/index.html
before you may want to go to localserver.js and change

readdir(__dirname)
  .then(async (files) => {
    const scriptfiles = files.filter(
      (file) => file.endsWith('.spec.js') && file.startsWith('bi')
    )

Where the string in startsWith lets you select a certain set of tests.

It should work with any Webtransport supporting server and also supports http2.
Currently, however, only chromium-based browsers pass.
Current Firefox versions has trouble connecting with the server currently, but it worked a few months ago (I will investigate if it is the fault of my library, quiche, or gecko).
But I had to delay posting this information as these tests sometimes can trip something, which was a secret until a few weeks ago.

I hope it can be a helpful addition to the wpt tests.

@jan-ivar
Copy link
Member

jan-ivar commented Jan 8, 2025

Hi Marten, that's great! cc @jesup to help find someone to check why these tests would be failing in Firefox.

@martenrichter
Copy link
Author

I already found the issue causing them to fail and submitted a patch for Bug 1934402. serverCertificateHashes broke down. The patch waits, that an rfc for a new wpt test is accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants