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

Set up tests #30

Open
suluke opened this issue Feb 9, 2016 · 0 comments
Open

Set up tests #30

suluke opened this issue Feb 9, 2016 · 0 comments

Comments

@suluke
Copy link
Owner

suluke commented Feb 9, 2016

Due to the nature of this project, testing is a difficult task. I am also opposed to making headless browser environments (e.g. phantom) a requirement for this project. Here are some ideas, though, how we can automate some tests:

  1. Check that the plugin does not cause errors when loaded
  2. Validate html structure of the widget in different contexts, e.g. after initialization, after loading a specific plugin... This can be done using only lightweight DOM-simulation libraries like cheerio.
  3. Validate events are triggered on certain actions, e.g. change on clearSelection()

More ideas will be documented here when available

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