Giter Site home page Giter Site logo

JUnit test example for wasm about j2cl HOT 5 OPEN

treblereel avatar treblereel commented on June 17, 2024
JUnit test example for wasm

from j2cl.

Comments (5)

gkdn avatar gkdn commented on June 17, 2024

It works the same way as JavaScript however we cannot add it to CI since it doesn't have binaryen integration (currently assumes binaryen is in the path).

@mollyibot Could you manually test this to check if we are missing anything?

from j2cl.

mollyibot avatar mollyibot commented on June 17, 2024

I first changed j2wasm_generate_jsunit_suite to take Label("//build_defs/internal_do_not_use:internal_junit_runtime-j2wasm") instead of "//build_defs/internal_do_not_use:internal_junit_runtime-j2wasm", then bazel build //src/test/java/com/google/j2cl/samples/helloworldlib:HelloWorldTest_generated_suite_j2wasm_application but it gives me an error Binaryen (wasm-opt) is not available. Aborting., Any thoughts?

from j2cl.

gkdn avatar gkdn commented on June 17, 2024

We expect binaryen to be available on the path. See here:
https://github.com/google/j2cl/blob/dcf29c75c6e79713987e620eb220cf540e8eb708/third_party/binaryen.sh

from j2cl.

treblereel avatar treblereel commented on June 17, 2024

@gkdn cool, thanks a million!

from j2cl.

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.