Testing for native plugin

Is it currently possible to write unit tests and integration test for native plugins and run the tests in real device?

The test suite provided by angular itself can only run in headless chrome, which cannot be used to test native plugins.

Thank you in advance