Search code examples
javakotlinjunit5apple-m1

Disable junit5 test when running on M1 Apple Silicon


Is there a way to disable specific tests when they're running on M1?

I haven't found a relevant annotation for this.


Solution

  • It turns out I can use:

    @DisabledIfSystemProperty(named = "os.arch", matches = ".*aarch64.*")