One Response to “Why would Assets.getBytes returns null in a test environment?”

This looks like an issue with the working directory; likely when running under MUnit, your working directory isn’t the same as when running your primarily applicable and thus the paths do not correctly resolve (it’s also possible for some reason that file IO methods are disallowed under test, but that seems egregious).

Consider using embedding the resources in your test assemblies, or determining how to alter the working directory for MUnit’s test execution.