Mabedan
Mabedan

Reputation: 907

how to save the test snapshots in xcode7 UITesting when ran using xcodebuild

I am running xcode7 ui tests via jenkins, and would like to have a screenshot of the failures.

I know how to do it via xcode itself:

screenshot functionality on xcode

The question is how to do it when tests are ran via xcodebuild

xcodebuild -workspace bla.xcworkspace test

Upvotes: 0

Views: 386

Answers (1)

Mabedan
Mabedan

Reputation: 907

defining the -derivedDataPath flag on xcodebuild will save all the test data. the screenshots specifically, can be found under Logs/Test/Attachments/ in wherever you save the derivedData

Upvotes: 1

Related Questions