Skip to content

Add testing #91

@hedning

Description

@hedning

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAdds a new feature or extends scopeproject supportIssues related to supporting or improving the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions