18F / omb-eregs

A tool to find, read, and maintain White House Office of Management and Budget (OMB) policy requirements
https://policy-beta.cio.gov/
Other
9 stars 9 forks source link

Consider implementing "fuzz testing" for the ProseMirror editor #1014

Open toolness opened 6 years ago

toolness commented 6 years ago

There are so many potential states that the ProseMirror editor can be in that I'm curious if it'd be useful to implement fuzz testing for it, where we just input random keystrokes into a (perhaps randomly constructed) document and ensure on a per-keystroke basis that e.g.:

If one of these conditions is not met, we could log the prosemirror state somewhere so that the situation could be reproduced on a developer's machine, and perhaps even reused in a regression test.