fsprojects / Canopy.Mobile

Canopy testing framework for mobile apps
https://fsprojects.github.io/Canopy.Mobile/
MIT License
14 stars 12 forks source link

Design discussion: Parallel test run support #5

Closed lefthandedgoat closed 7 years ago

lefthandedgoat commented 7 years ago

canopy can only run tests in one browser at a time because it uses a global mutable instance of the browser. It makes the api really nice but more advanced users want to run more than one test at the same time.

The easiest way for them to do this is to simply parameterize their console app to run a subset of tests, or with different browsers, and run the console app more than one time.

Some people (not many) want true parallel support in the same process. This is not hard to do, as you can add an instance of the browser/simulator as a parameter to ALL function calls, but obviously this makes the api kind of unpleasant.

You can support 2 apis, one that is nice and clean, and one that is less clean but allows for parallel.

This may not be a big problem for android/ios though because starting the simulator is so expensive.

forki commented 7 years ago

I don't know if we can really benefit from parallel tests. If people want that, then let them parallelize in outer fake script.

Am 17.12.2016 6:26 nachm. schrieb "Chris Holt" notifications@github.com:

canopy can only run tests in one browser at a time because it uses a global mutable instance of the browser. It makes the api really nice but more advanced users want to run more than one test at the same time.

The easiest way for them to do this is to simply parameterize their console app to run a subset of tests, or with different browsers, and run the console app more than one time.

Some people (not many) want true parallel support in the same process. This is not hard to do, as you can add an instance of the browser/simulator as a parameter to ALL function calls, but obviously this makes the api kind of unpleasant.

You can support 2 apis, one that is nice and clean, and one that is less clean but allows for parallel.

This may not be a big problem for android/ios though because starting the simulator is so expensive.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fsprojects/Canopy.Mobile/issues/5, or mute the thread https://github.com/notifications/unsubscribe-auth/AADgNJWIiHOi560FqtrFeUjkmH1beixMks5rJBtEgaJpZM4LP751 .