Giter VIP home page Giter VIP logo

Comments (7)

drewhannay avatar drewhannay commented on August 13, 2024 1

@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.

drewhannay avatar drewhannay commented on August 13, 2024

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.

bootstraponline avatar bootstraponline commented on August 13, 2024

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.

bootstraponline avatar bootstraponline commented on August 13, 2024

Thank you!! This is awesome.

from test-butler.

bootstraponline avatar bootstraponline commented on August 13, 2024

@drewhannay can you throw a license banner on those gist files? I'd like to use them at work. 😄

from test-butler.

drewhannay avatar drewhannay commented on August 13, 2024

Done 😄

from test-butler.

bootstraponline avatar bootstraponline commented on August 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.