Chel
Chel

Reputation: 143

Is Unit Test required for Xcode Bots Continuous Integration?

I don't have Unit Test script yet. I just want to see that the the integration itself is working and show 'Passed' results, is it possible without set of unit test? Currently, I always get Failed status on Summary of Results.

Upvotes: 0

Views: 146

Answers (2)

shiningabdul
shiningabdul

Reputation: 181

When creating the bot you can uncheck "Perform Test Action" and the bot will not run any unit tests. If you already created the bot you can go the bot under Log Navigator, select it and choose Edit Bot. You will be able to do the same thing there.

Upvotes: 1

Niels Castle
Niels Castle

Reputation: 8069

Although you haven't created unit tests yourself they are probably already in the project.

If you created your test project from one of the project templates, unit tests are included by default.

The unit tests included by default have a single test that always fails. Locate the unit test and comment out the XCTFail line in the [your project name]Tests.m file

//XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);

Upvotes: 0

Related Questions