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

Add testing #91

Open
hedning opened this issue Dec 16, 2018 · 0 comments
Open

Add testing #91

hedning opened this issue Dec 16, 2018 · 0 comments
Labels
stability Work towards making PaperWM more reliable

Comments

@hedning
Copy link
Member

hedning commented Dec 16, 2018

We want to add tests (perhaps CI if it's possible too).

One way to do testing is setting XDG_CONFIG_HOME, populating it with a user.js which then would run the tests.

A simple test for something like fullscreen reactivity (which I broke twice recently):

  • create a window, wait for it to appear
  • set fullscreen
  • check that actor.visible == true and clone.visible == false
  • signal completion to the test runner, with eg. emit('done', [ok, result])

A more complex example would be restarts on x11:

  • create some windows
  • save some state
  • restart
  • check that we've restarted
  • signal completion
@hedning hedning added the stability Work towards making PaperWM more reliable label Dec 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stability Work towards making PaperWM more reliable
Projects
None yet
Development

No branches or pull requests

1 participant