Comments (7)
@bootstraponline Here's a gist of what we use for closing activities
The custom test harness is harder to show off, since it's a lot of code. It's fairly similar to Shazam's Fork runner. I'd love to open source it someday, but right now it has too many dependencies on internal things and we haven't had the time / resources to refactor and extract the right parts.
from test-butler.
Yeah, I'm not sure closing activities is something that makes sense to live in Test Butler. I agree that it's a big pain point though.
At LinkedIn, we do something pretty similar to the code you posted for closing activities. We also get around this problem by using a custom test harness which only runs a single test per instrument
command. Between each test execution, we force-stop the app and clear all package data, to ensure that the next test is starting from a completely clean state, even if the previous test failed or left activities running.
from test-butler.
Cool. Thanks for the info.
If it's possible, it'd be neat to see the closing activity code / custom test harness even if it doesn't live in the test-butler repo.
from test-butler.
Thank you!! This is awesome.
from test-butler.
@drewhannay can you throw a license banner on those gist files? I'd like to use them at work. 😄
from test-butler.
Done 😄
from test-butler.
Thanks! It's working really well with our internal tests. The changes will be in the next open source sync.
edit: fixed link
from test-butler.
Related Issues (20)
- Could not find com.linkedin.testbutler:test-butler-api:2.1.0 HOT 4
- Set cursor drawable to empty in tests HOT 3
- Can't resolve androidTestUtil HOT 2
- Follow-up on #109 to remove Bintray references from readme.md HOT 2
- https://b.corp.google.com/issues/37057596 is fixed HOT 1
- AnimationsUtil.loadAnimation is not going to be disabled by TestButler HOT 1
- Lost transitive dependencies during mavenCentral migration HOT 5
- Fix information in the README HOT 4
- Android 8 (SDK 26) fail to install test butler app HOT 3
- Ability to change date/time of emulator HOT 1
- sharedUserId changed on newer Android versions HOT 1
- How to use test-butler on api 27? HOT 1
- Locale changer do not work on Android8 HOT 3
- Cannot change developer settings after TestButler.setup() HOT 9
- Grant permissions could be removed due to new Android Test rule HOT 1
- java.lang.NoClassDefFoundError: android.provider.Settings$Global HOT 8
- Does test butler work with android-library modules? HOT 4
- Example custom test runner crashes HOT 6
- Support for Android Q (API 29) HOT 5
- Add change font size HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-butler.