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

CI: Add tests for controller.game #34

Open
cyberrumor opened this issue Nov 17, 2023 · 0 comments
Open

CI: Add tests for controller.game #34

cyberrumor opened this issue Nov 17, 2023 · 0 comments

Comments

@cyberrumor
Copy link
Owner

cyberrumor commented Nov 17, 2023

controller.game has been accumulating a lot of functionality lately, but it's not automatically tested anywhere.

To test it, we can probably manipulate the environment to say HOME is /tmp/home, and make some context managers that create and destroy the folders we want to test against before/after each test.

  • Test no supported games installed
  • Test library.vdf parsing
  • Test one or multiple steam games installed
  • Test one or multiple flatpak games installed
  • Test unique games installed in flatpak and steam
  • Test the same game is installed through both flatpak and steam
  • Test that UI(ammo_controller).controller attributes are created the way we expect.
  • Test that arguments like --conf, --downloads and --mods behave correctly.
@cyberrumor cyberrumor changed the title Add tests for game_controller Add tests for controller.game Dec 15, 2024
@cyberrumor cyberrumor changed the title Add tests for controller.game CI: Add tests for controller.game Dec 15, 2024
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