Re: [Mojolicious] Test::Mojo to test WS client?

2020-01-22 Thread Felipe Gasper
> On Jan 22, 2020, at 12:25 PM, Felipe Gasper wrote: > > Hi Dan, > > Thank you for your response! > > So, maybe what I need isn’t Test::Mojo. I have: > > - > package t::MockApp; > > use Mojo::Base -strict; > > use Mojolicious::Lite; > > websocket '/my-websocket-endpoint'

Re: [Mojolicious] Test::Mojo to test WS client?

2020-01-22 Thread Felipe Gasper
Hi Dan, Thank you for your response! So, maybe what I need isn’t Test::Mojo. I have: - package t::MockApp; use Mojo::Base -strict; use Mojolicious::Lite; websocket '/my-websocket-endpoint' => sub { ... } - … and I’d like my tested $ua (Mojo::UserAgent->new())

Re: [Mojolicious] Test::Mojo to test WS client?

2020-01-22 Thread Dan Book
You mentioned using Test::Mojo - the test file you mentioned does this, it tests both client and server. -Dan On Wed, Jan 22, 2020 at 10:38 AM Dan Book wrote: > https://github.com/mojolicious/mojo/blob/master/t/mojo/websocket.t > > -Dan > > On Wed, Jan 22, 2020 at 10:34 AM Felipe Gasper >

Re: [Mojolicious] Test::Mojo to test WS client?

2020-01-22 Thread Dan Book
https://github.com/mojolicious/mojo/blob/master/t/mojo/websocket.t -Dan On Wed, Jan 22, 2020 at 10:34 AM Felipe Gasper wrote: > Hello, > > I see t/mojolicious/websocket_lite_app.t in the Mojolicious > distribution, but this seems to test Mojo as a WS server. Are there any > examples of

[Mojolicious] Test::Mojo to test WS client?

2020-01-22 Thread Felipe Gasper
Hello, I see t/mojolicious/websocket_lite_app.t in the Mojolicious distribution, but this seems to test Mojo as a WS server. Are there any examples of using Test::Mojo--or any other tool--to test Mojo-powered WS clients? Thank you! -FG -- You received this message because