Skip to content

Question: How to skip Input tests which fail under --headless? #598

@hatmix

Description

@hatmix

I am testing some detailed input handling and the tests work as expected from both the editor and the command-line without the --headless option. However, these fail when headless, probably for the reasons explained in comments in godotengine/godot#73557 .

Accepting this engine behavior, I'm now looking for:

  1. GUT's recommended way to skip tests--I didn't find anything in doc
  2. A (straightforward) way to detect headless mode to trigger the skips

I found @russmatney's comment in #360 useful for point 2, but was hoping in the meantime someone had found a better way.

TIA!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions