We are building a C++ in-browser project and want to use googletest and 
ctest for our CI loop to test functionality that requires XHR and 
Emscripten's -fetch library. In the emscripten code base we find:
emscripten/tests/fetch/example_stream_async_xhr.cpp 

We have changed this code and linked it as a test with GTest framework main 
harness. This gives us a test binary. We can get it to run with emrun and 
print the GTest test report to stdout if we link with with 
the -emrun linker flag 
<https://emscripten.org/docs/compiling/Running-html-files-with-emrun.html#quick-how-to>
.

We are aware of the Emscripten test runner 
<https://emscripten.org/docs/getting_started/test-suite.html#running-tests> but 
do not know how to combine it with ctest.

We have two questions:

   1. How do you run a test interactively using emrun in a *headless*
    browser.
   2. How do you configure emrun so *the browser exits after the test exits*
   .

We can provide the test code, but this question is not about the code, but 
about the configuration of a headless test runtime when a browser is 
required.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/d149c45d-f106-4367-b14c-d06bf54aae23n%40googlegroups.com.

Reply via email to