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

Core: Add a test suite #9297

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Core: Add a test suite #9297

wants to merge 3 commits into from

Conversation

vaxerski
Copy link
Member

@vaxerski vaxerski commented Feb 2, 2025

Currently we only test whether hyprland compiles, but we don't actually test... well, anything else.

This MR is a WIP that adds a test suite.

For now it runs, works, and tests spawing two kitties with smart gaps, that's about it.

TODOs:

  • Test... well, more.
  • Add a plugin that will be built alongside to allow for simulating keystrokes mouse strokes and other stuff
  • consider thinking about visual tests?

@fufexan nix, meson, ci pls? Tester needs to be ran from /hyprtester, btw.

cc @PaideiaDilemma @gulafaran

@fufexan
Copy link
Member

fufexan commented Feb 2, 2025

Good idea, but I suggest we use https://nix.dev/tutorials/nixos/integration-testing-using-virtual-machines.html. These are much simpler to use since we don't need to build our own testing framework, and there are plenty of examples to help.

I'll try to cook something up today or tomorrow if I have time.

@vaxerski
Copy link
Member Author

vaxerski commented Feb 3, 2025

what? Just run the tester and fail if it returns non-zero

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

Successfully merging this pull request may close these issues.

2 participants