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
344 stars 83 forks source link

How can you run the tests from command line? #95

Open mariusbob opened 6 years ago

mariusbob commented 6 years ago

Since I want to integrate my tests with Jenkins, I was looking on the wiki page to see if there is a way of running the tests from command line but I didn't find anything.

Any suggestions?

dgommers commented 6 years ago

Cucumberish runs in a normal test target and can be ran from like any other target using thexcodebuild CLI. As far as I know, there is no additional configuration needed for Cucumberish to make this work. The Apple Developer website has a good guide on automating the Test Process.

Once you are able to use the xcodebuild command, you can consider using Fastlane. It is a automation tool that abstracts xcodebuild and makes it less of a hassle to use. Get started with the fastlane docs: Running tests.

singh88 commented 2 years ago

I am stumbled upon this too. Any suggestion on how to go about it?

singh88 commented 2 years ago

I was able to get it work with fastlane and xcodebuild. As its said, its pretty straight forward. You just need to define the testing scheme and your tags that you want to run and the through fastlane or xcodebuild you just need to call the test scheme and it will work just fine. For example,

if you are calling Cucumberish 'execute feature' function with tags @uitest and if you run your ui test scheme using fastlane/xcodebuild then all of your tests that have @uitest tag will be executed as part of this test run.