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

Add a test harness to directly execute wasm tests #524

Merged
merged 2 commits into from Jul 20, 2018

Conversation

Projects
None yet
1 participant
@alexcrichton
Copy link
Collaborator

alexcrichton commented Jul 20, 2018

This commits adds a few new crates and infrastructure to enable comands like:

cargo test --target wasm32-unknown-unknown

The intention here is to make it as low-friction as possible to write wasm tests
and also have them execute in a reasonable amount of time. Eventually this is
also hopefully enough support to do things like headless testing!

For now though this is defintely MVP status rather than fully fleshed out.
There's some more information at crates/test/README.md about how it works and
how to use it, but for now this is mainly intended to play around with locally
in this repository for our own tests.

alexcrichton added some commits Jul 20, 2018

Add a test harness to directly execute wasm tests
This commits adds a few new crates and infrastructure to enable comands like:

    cargo test --target wasm32-unknown-unknown

The intention here is to make it as low-friction as possible to write wasm tests
and also have them execute in a reasonable amount of time. Eventually this is
also hopefully enough support to do things like headless testing!

For now though this is defintely MVP status rather than fully fleshed out.
There's some more information at `crates/test/README.md` about how it works and
how to use it, but for now this is mainly intended to play around with locally
in this repository for our own tests.
Port a numbe of `js-sys` tests to the new test framework
This commit ports a number of existing tests for the `js-sys` crate over to the
new test framework created in the previous commit, showing off how they can be
executed as well as drastictlly simplifying the tests themselves! This is
intended to be a proof of concept for now which we can refine over time. This
should also show off that it's possible to incrementally move over to the new
test framework.

@alexcrichton alexcrichton force-pushed the alexcrichton:test-runner branch from 6228a08 to 0fc3735 Jul 20, 2018

@alexcrichton alexcrichton merged commit f8d336d into rustwasm:master Jul 20, 2018

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details

@alexcrichton alexcrichton deleted the alexcrichton:test-runner branch Jul 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.