Testing sketch application
The function test_sketch
is provided for testing applications developed using sketch . The function takes two scripts, an app script and a test script. The way it works is that it adds a WebSocket connection to the app (if there isn't one already), runs the test and then reports back the results.
#
An example#
ScreenshotNote: Currently, testthat
only supports expect_true
, expect_false
and expect_equal
. Pull requests are warmly welcome.