deepstate icon indicating copy to clipboard operation
deepstate copied to clipboard

Unit tests for frontend API

Open ex0dus-0x opened this issue 5 years ago • 1 comments

As we approach integrating type hints and checking with mypy (https://github.com/trailofbits/deepstate/issues/260 and https://github.com/trailofbits/deepstate/pull/268) and other fun static checking stuff into the dev cycle, it would also be nice to have a set of unit tests for front-ends as well. This way we are able to establish that basic functionality is preserved when changes are added in as we refactor the codebase towards suggestions from linters/checkers.

This might be a little tricky due to the way frontends interact greatly with the underlying environment, so using a mock testing framework may help with the efforts in doing so.

ex0dus-0x avatar Nov 18 '19 17:11 ex0dus-0x

Implemented basic fuzzer test: simple crash and for seed synchronization. In CI, they are run inside the docker.

We may change the CI workflow to use container option instead of run: |, but that would require publishing deepstate image in public registry. Because github actions can't use local images as container argument afaik.

GrosQuildu avatar Feb 19 '20 14:02 GrosQuildu