Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 280
pixel Avatar asked Nov 29 '25 16:11

pixel


1 Answers

It turns out I can use:

@DisabledIfSystemProperty(named = "os.arch", matches = ".*aarch64.*")
like image 98
pixel Avatar answered Dec 02 '25 05:12

pixel