On Thu, 3 Aug 2017 03:48:20 -0700 (PDT) [email protected] wrote: > Hi, I am porting C++ code to webassembly with emscripten and I want to > write my own unit tests. > I know that there is a test/runner.py but it works only with emscripten > test suites. > Are there any ways to build and run my tests with emscripten? >
Hi! You can try writing your tests in JavaScript and using a JS test suite manager such as QUnit or mocha. I've followed this approach here: https://github.com/shlomif/fc-solve/tree/master/fc-solve/site/wml/ You can try using node to run the tests from the command line. -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ List of Text Editors and IDEs - http://shlom.in/IDEs He says “One and one and one is three”. Got to be good‐looking ’cause he’s so hard to see. — The Beatles, “Come Together” Please reply to list if it's a mailing list post - http://shlom.in/reply . -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
