krzema12 / vis-assert

Test the shape of your functions!
MIT License
6 stars 1 forks source link

Make writing tests more convenient #7

Open krzema12 opened 5 years ago

krzema12 commented 5 years ago

For example, the Kotlin code can be generated that shows a strict testcase for given axes parameters.

krzema12 commented 5 years ago

Idea: if the assertion fails, display a strict visualization, but not as a Kotlin code, but a 2D grid with axis markers.

Take into account the following edge cases:

Ideas on the message:

krzema12 commented 5 years ago

An alternative idea is to produce an image for each test, showing the visualization of both the actual function and the assertions.

krzema12 commented 5 years ago

Consider using:

krzema12 commented 5 years ago

For each failed test:

krzema12 commented 5 years ago

PlotAssertTest

krzema12 commented 5 years ago

During working on a proof of concept, I hit "Error: URI Too Long" issue.

krzema12 commented 5 years ago

A stub of a helper project: https://github.com/krzema12/PlotAssertVisualizer