Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make writing tests more convenient #7

Open
krzema12 opened this issue Apr 26, 2019 · 7 comments
Open

Make writing tests more convenient #7

krzema12 opened this issue Apr 26, 2019 · 7 comments
Labels
enhancement New feature or request

Comments

@krzema12
Copy link
Owner

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

@krzema12 krzema12 added the enhancement New feature or request label May 6, 2019
@krzema12
Copy link
Owner Author

krzema12 commented May 7, 2019

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:

  • the function's value exceeds Y axis' range - mark it with some arrow, to point the user that the function goes beyond the visualization
  • for a probed X value, the function returns "not a number" (e. G. Division by 0) or +/- infinity - for now, let's treat it as an invalid function - for such value, there cannot be a valid constraint. At most, no constraint at all for this X value

Ideas on the message:

  • first graph: what the user gave. Use emojis ✔️ and ❌ above the columns to mark which columns contain fulfilled assertions, and for which the assertions fail
  • second graph, below: suggested minimal assertions

@krzema12 krzema12 added this to the Public beta milestone May 18, 2019
@krzema12
Copy link
Owner Author

krzema12 commented Jun 8, 2019

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

@krzema12 krzema12 pinned this issue Jun 20, 2019
@krzema12
Copy link
Owner Author

krzema12 commented Jun 24, 2019

@krzema12
Copy link
Owner Author

krzema12 commented Jun 25, 2019

For each failed test:

@krzema12 krzema12 self-assigned this Jul 5, 2019
@krzema12
Copy link
Owner Author

krzema12 commented Jul 5, 2019

PlotAssertTest

@krzema12
Copy link
Owner Author

krzema12 commented Jul 8, 2019

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

@krzema12
Copy link
Owner Author

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

@krzema12 krzema12 removed their assignment Dec 15, 2019
@krzema12 krzema12 removed this from the Public beta for JVM milestone Jan 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant