Re: Running a headless googletest with XHR in a browser

2020-07-25 Thread Jörn Guy Süß
Thanks. I understand this issue if the community only uses a single forum. 
Let us see what the responses on the github issue are. Do you have any 
suggestions alon?

Best,
JG

On Friday, 24 July 2020 at 00:16:54 UTC+10 alon...@gmail.com wrote:

> This is a good question, and I'm curious to see what people suggest, but I 
> see you posted the same question both here and on github - let's please 
> continue the discussion there, so that the conversation isn't split between 
> two places,
>
> https://github.com/emscripten-core/emscripten/issues/11700
>
> In general I think it's best not to post duplicates to multiple places 
> simultaneously. It can be confusing if two separate discussions start up 
> and people need to remember what was said in which. It also makes searching 
> for similar issues harder in the future. Also many people are subscribed to 
> both places and they get duplicate notifications.
>
> On Wed, Jul 22, 2020 at 7:58 PM Jörn Guy Süß  wrote:
>
>> 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 
>> 
>> .
>>
>> We are aware of the Emscripten test runner 
>>  
>> 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 emscripten-disc...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/emscripten-discuss/d149c45d-f106-4367-b14c-d06bf54aae23n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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 emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/3a0e72f6-1c59-4d3b-91a4-2857a2cade00n%40googlegroups.com.


Re: Running a headless googletest with XHR in a browser

2020-07-23 Thread Alon Zakai
This is a good question, and I'm curious to see what people suggest, but I
see you posted the same question both here and on github - let's please
continue the discussion there, so that the conversation isn't split between
two places,

https://github.com/emscripten-core/emscripten/issues/11700

In general I think it's best not to post duplicates to multiple places
simultaneously. It can be confusing if two separate discussions start up
and people need to remember what was said in which. It also makes searching
for similar issues harder in the future. Also many people are subscribed to
both places and they get duplicate notifications.

On Wed, Jul 22, 2020 at 7:58 PM Jörn Guy Süß  wrote:

> 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
> 
> .
>
> We are aware of the Emscripten test runner
>  
> 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 emscripten-discuss+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/emscripten-discuss/d149c45d-f106-4367-b14c-d06bf54aae23n%40googlegroups.com
> 
> .
>

-- 
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 emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/CAEX4NpRxzEsOBMB%3DBG1cR%2B8s0Wc-0XdORH2Lb4x0QX3kRxW8bg%40mail.gmail.com.


Running a headless googletest with XHR in a browser

2020-07-22 Thread Jörn Guy Süß


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 

.

We are aware of the Emscripten test runner 
 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 emscripten-discuss+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/d149c45d-f106-4367-b14c-d06bf54aae23n%40googlegroups.com.