Code Monkey home page Code Monkey logo

Comments (4)

Uzlopak avatar Uzlopak commented on June 10, 2024

Maybe we can adapt it from this?

https://github.com/search?q=repo%3Atheturtle32%2FWebSocket-Node%20autobahn&type=code

I think we should do it in two steps.

  1. Add autobahn test suite and make it run via an npm script like npm run test:autobahn
  2. Fix errors thrown by autobahn incrementally
  3. If all tests pass, add it as part of the test:websocket npm script

from undici.

KhafraDev avatar KhafraDev commented on June 10, 2024

@Uzlopak thanks for the link, but I'd probably use ws' autobahn client script; a lot of what's implemented in Websocket-node is just a basic setup that the autobahn suite instructs us on how to setup already.

autobahn tests don't exit out, it generates a report with passed/failed tests as an html file. We would instead publish the report on the docs site (for example).

running the tests is relatively easy, but making a reproducible testing suite is the hard part. Also, the tests don't give information on what failed and we have to replicate each test in js which makes it hard.

from undici.

KhafraDev avatar KhafraDev commented on June 10, 2024

https://github.com/websockets/ws/blob/master/test/autobahn.js

from undici.

KhafraDev avatar KhafraDev commented on June 10, 2024

index.txt

Here are the results. (rename to index.html, github wouldn't let me upload an html file...)

from undici.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.