Testing on the client side

Hrm - looks like Skulpt’s unittest support is less flexible than we’d like. For now, you can work around it by instantiating a TestCase class and calling main() on it, like so:

# This is a workaround that uses internal details of client-side "unittest":
tc = MyTestCase()
tc.main()
# You may want to read tc.numPassed and tc.numFailed at this point
1 Like