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

Use splinter + headless selenium to test the sketch renderization #109

Open
4 tasks
berinhard opened this issue Nov 5, 2019 · 0 comments
Open
4 tasks

Comments

@berinhard
Copy link
Owner

After #103, the pytop5js.py file now has more logic attached to it. Since this file is transcribed to JS code, the proper way to test it would be with acceptance tests. For those we can use the splinter project with a headless selenium webdriver.

The main tests scenarios would be:

  • Create a simple sketch to draw a circle in the middle of the canvas and make sure the circle is there by checking the DOM;
  • Make sure we can use Python's map function and p5.js one;
  • Make sure we can use Python's filter function and p5.js one;
  • Make sure we can use Python's set function and p5.js one;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant