godaddy / ekke

Ekke is a test runner for React-Native, it allows you to execute your test code directly on the device enabling you to test in the same environment as your production users.
MIT License
133 stars 9 forks source link

Create a `jest` based runner #12

Open 3rd-Eden opened 5 years ago

3rd-Eden commented 5 years ago

This ticket tracks the creation of a jest based runner. In order to integrate a test runner our system makes the following assumptions:

Currently jest executes the tests through their jest CLI. There is no programmatic API documented that we can use. This doesn't mean it's impossible to integrate. In the last few months, they started extracting bit's of the CLI into a dedicated jest-core package that would eventually become an API https://github.com/facebook/jest/pull/7696 this work is currently tracked in https://github.com/facebook/jest/issues/5048. When this work is completed it should become a lot easier to integrate jest as test runner.

Acceptance Criteria

shwanton commented 5 years ago

Adding jest runner support would be awesome!

Could React Native Testing Library be used even w/o the jest runner?

3rd-Eden commented 5 years ago

@shwanton I haven't tried it yet, so I can't really comment on it. Have you given it a go?

shwanton commented 5 years ago

I have, but mostly for snapshot tests. However w/ RN there is still all the native mocks that need to happen so having it run in a real simulator sounds like a great solution.