What unit test framework are you using for C++? You can probably use it with emscripten too, if it's just C++ code. So you'd build your unit tests using emcc, and then can run them in the shell using node.js (that might be the only part you need to change a little in the test framework). Or you can optionally use a JS test suite manager as Shlomi mentioned, that might also let you run the tests in a browser (which you might need depending on what the tests do).
On Thu, Aug 3, 2017 at 7:44 AM, <[email protected]> wrote: > Thank you. > But as I understood there is no way to write and run tests in C++ with > emscripten? > > четверг, 3 августа 2017 г., 13:48:20 UTC+3 пользователь > [email protected] написал: > >> 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? >> > -- > 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. > -- 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.
