All about TestRule — A Steroid Before/After

Elye
Elye
Aug 22, 2018 · 5 min read

We usually have @Before and @After in our test for setup and teardown functions needed for the test. So what is testRule?

It’s so commonly used

We have have seen it and used it, if one has use Espresso test before, and one very common way of using it is