Skip to content

kraih/mojo-playwright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playwright and Mojolicious

This is a companion repo to my blog post Playwright and Mojolicious. Here you can find a few examples for how to use Playwright to test the sample Mojolicious WebSocket application chat.pl. Tests are written in a mix of Perl and JavaScript. Thanks to Node Tap you can run them all with prove at the same time. Even in parallel with -j 3!

How to run?

$ npm i
...
$ cpanm -n --installdeps .
...
$ prove t/*.t t/*/t.js
t/just_js.t.js ..... ok   
t/just_perl.t ...... ok   
t/wrapper_js.t.js .. ok   
All tests successful.
Files=3, Tests=12,  4 wallclock secs ( 0.02 usr  0.01 sys +  2.23 cusr  0.60 csys =  2.86 CPU)
Result: PASS

About

Sample application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published