Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Debugging] Roll20 API Mocker

I've created a Roll20 API Mocker for&nbsp; node.js . My intent was to make something that would allow for rigorous testing, not only behaving identically to the Roll20 API but allowing you to create/remove players, pages, etc or simulate players entering commands. It is pretty much complete, only missing two pieces 1) parsing rolls such as '/r d20' into results 2) parsing inlines such as '[[d20]]' into results. You can check out usage instructions, the wiki, or the code at&nbsp; <a href="https://github.com/kyleady/Mock20" rel="nofollow">https://github.com/kyleady/Mock20</a> .
1502222220
The Aaron
Pro
API Scripter
Neat! &nbsp;That will save me time... =D Lucian made a wrapper for Roll20 objects which you might find interesting: &nbsp; <a href="https://github.com/symposion/roll20-wrapper" rel="nofollow">https://github.com/symposion/roll20-wrapper</a>
1502222487
The Aaron
Pro
API Scripter
Looks pretty neat, I can't wait to try it out! &nbsp;I might be able to help you out with the roll parsing...
I would be glad to get that help. It is going to take a lot of poking roll20 to see what it will and will not accept.
This is great thanks for the reference @Aaron
1502812163
The Aaron
Pro
API Scripter
No problem!
I have created an example Roll20 project that uses Mock20 for testing for those interested in seeing a possible implementation. <a href="https://github.com/kyleady/Example-Mock20-Testing" rel="nofollow">https://github.com/kyleady/Example-Mock20-Testing</a>