How to use TestService better?

Never really used tests, so I figured I might as well start.

Easiest way to run tests seemed to be to go into CommandBar and call game:GetService(“TestService”):Run()

This works great, except then I’ll change the script as the tests fail and the next time I call TestService:Run() it will still use the old script instead of the new script, even after committing the changes. I then have to restart studio for it to refresh any ModuleScripts - it seems to be caching the require() result for them.

Is there an easier way to run this? Ideally I could still run TestService without having to hit play.

1 Like

Press F8 in studio. To stop the test, click “Stop”.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.