GithubHelp home page GithubHelp logo

Test coverage about windowjs HOT 3 CLOSED

windowjs avatar windowjs commented on April 30, 2024
Test coverage

from windowjs.

Comments (3)

sc0ttj avatar sc0ttj commented on April 30, 2024

I wrote a little test suite which is meant to be self contained, zero deps, isomorphic, portable etc

https://github.com/sc0ttj/tea

It might be one of the easier test suites to get working outside a regular browser or node context..

from windowjs.

joaodasilva avatar joaodasilva commented on April 30, 2024

@sc0ttj thanks for the hint! Zero deps is very appealing :-)

I'm building a custom test runner first, to make use of subprocesses in Window.js: each test suite runs in its own process, and N suites run in parallel at a time (N == number of parallel threads supported by the current machine).

The more important API to test right now is the Canvas API, and the tests will be mostly pixel diff tests: does the image rendered match an expected image. Does tea support that?

from windowjs.

joaodasilva avatar joaodasilva commented on April 30, 2024

de115f7 added a test runner and initial test coverage for the File API, Process API and some globals.

6a09576 enabled running those tests in the build workflows.

The next tests will cover the Window API, and the runner/test library should also support pixel diff tests to test the output of the Canvas API via screenshots.

from windowjs.

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.