Ahmed-Ali / Cucumberish

Cucumberish is test automation framework for Behaviour Driven Development. It is inspired by the amazing way of writing automated test cases introduced originally by Cucumber using Gherkin language
MIT License
343 stars 84 forks source link

Autonomous tests #65

Open nunof opened 7 years ago

nunof commented 7 years ago

Hi,

Calabash framework can be linked to an app and that will enable the embedded HTTP server thus allowing for instrumenting the app on the physical device.

Can Cucumberish be built into another (testing) app to be installed on the same device and then connect to Calabash http server to run the tests completely autonomously?

Thanks

dgommers commented 7 years ago

Not sure if I understand you correctly: You would like to run Cucumberish on a separate iOS app and have the step definitions to interact with the Calabash HTTP server that is embedded in another app, correct?

Cucumberish gives freedom to implement the steps as you prefer. This means it could perform a HTTP request if you program it like that. However, we find it beneficial that Cucumberish is working in-app without any remote communication. It runs without any additional configuration effort on all dev machines.

What is your motivation to combine Calabash with Cucumberish? Maybe I am missing something.

nunof commented 7 years ago

Use case is distribution of iOS application and companion testing app to collaborators of large institution so that we can skip the moving of all device types to central location. We already have Android solution now we need iOS one.

I believe cucimberish needs implementation of endpoint device that cucumber has, right?

Thanks.

dgommers commented 6 years ago

Cucumberish can run tests from Xcode but not from a running app. You can fork and develop support for it, but it is not a common use case for this project. Doing so may require some effort as you need to get rid of the XCTest dependency (not available in normal app targets).

My recommendation is to look for an alternative solution.