Skip to content

Unit testing for core#3024

Merged
ammen99 merged 5 commits into
masterfrom
unit-testing
May 10, 2026
Merged

Unit testing for core#3024
ammen99 merged 5 commits into
masterfrom
unit-testing

Conversation

@ammen99
Copy link
Copy Markdown
Member

@ammen99 ammen99 commented May 9, 2026

This PR includes some of my AI-assisted explorations of how to unit/integration test core.

The motivation is simple. While our end-to-end tests at https://github.com/ammen99/wayfire-tests are very useful in catching bugs (and still have their place as a full-compositor test), the amount of tests there is growing rapidly. Given that each test needs a few seconds, this very quickly means that it is impractical to run all of the tests all of the time. By aiming for unit tests, we can hopefully have a much more comprehensive test suite, which also runs fast. For example, a simple xdg-shell test runs in 0.1s on my laptop.

@ammen99 ammen99 marked this pull request as ready for review May 10, 2026 14:49
@ammen99 ammen99 merged commit f7f5461 into master May 10, 2026
8 checks passed
@ammen99 ammen99 deleted the unit-testing branch May 10, 2026 15:28
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.

1 participant