XCTest targets not showing in AppCode 2019.2

Answered


I think this has actually been a long time issue, but XCTest targets are not listed in the run configurations.

I had hoped this would be corrected with the new coverage enhancements in AppCode 2019.2.

According to the blog comments for July 4th, one should not "… need to change any settings in your scheme – just select the test target and press the Run with Coverage button."

For me, my test targets are not showing up. Does the blog quote above assume we've manually added a test configuration in AppCode? The quote makes it seems as though my test targets should be displayed, as in Xcode.

Any thoughts out there?

Here is a screenshot of the project targets in Xcode:

 

 

And here is what I see in AppCode. There are no test targets listed.

 

 

AppCode 2019.2
Build #OC-192.5728.106, built on July 23, 2019
Licensed to David Nedrow
Subscription is active until December 29, 2019
Runtime version: 11.0.3+12-b304.10 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14.6
GC: ParNew, ConcurrentMarkSweep
Memory: 4083M
Cores: 16
Registry: documentation.show.toolbar=true, ide.mac.allowDarkWindowDecorations=true, debugger.watches.in.variables=false, ide.mac.touchbar.use=FALSE, git.explicit.commit.renames.prohibit.multiple.calls=false, max.suggested.heap.size=8192, vcs.annotations.preload=true
Non-Bundled Plugins: AceJump, Console Beep, DBN, FavoriteFolders, GitCheckoutFilesFromOtherBranch, GrepConsole, HtmlEntity, IDETalk, Jenkins Control Plugin, Key Promoter X, MoreUnit, PlantUML integration, Quick Notes, Scratch, Shifter, Statistic, String Manipulation, Unicode Browser, XSLT-Debugger, YAML/Ansible support, ZipChanges, awesome.console, br.com.matheusfm.jsonutils, bundled-appcode-help, call-graph, codes.seanhenry.mockgenerator, codes.seanhenry.teardown, color.scheme.GapStyle, com.alayouni.ansiHighlight, com.appcodeplugins.swiftify, com.appcodeplugins.swiftlint, com.berzanmikaili.intellij.monokai_pro, com.daylerees.rainglow, com.fwdekker.randomness, com.github.b3er.idea.plugins.arc.browser, com.github.holgerbrandl.pasteimages/, com.github.rougsig.duck-progress-bar, com.github.shiraji.emoji, com.godwin.json.parser, com.injectionforxcode.injection.plugin.id, com.insightfulminds.appcode.XcodeSchemeSelector, com.intellij.kotlinNative.platformDeps, com.intellij.plugin.applescript, com.intellij.properties, Atlassian Connector for IntelliJ IDE, cn.rieon.idea.git-flow, com.github.jk1.ytplugin, com.j92.current-date-generator, com.jetbrains.annotations.preloader, com.jetbrains.hackathon2015.S, com.jetbrains.php.framework, com.intellij.plugins.watcher, com.jmg.codecomment, com.kstenschke.copypastestack, com.kstenschke.finderinfo, com.paperetto.dash, com.potterhsu.jsonviewer, com.renemaas.intellij.zipper, com.sburlyaev.terminal.plugin, com.sourcegraph.jetbrains, com.tobszarny.activetabhighlighter.plugin.id, com.ultrahob.zerolength.plugin, com.vladsch.MissingInActions, com.widerwille.afterglow, com.widerwille.quicklook, commit-template-idea-plugin, de.ax.powermode, de.imgruntw.plugin.datetimeconverter, de.netnexus.camelcaseplugin, eu.osimowicz.plugins.intellij.CodeBlocksSorter, gr.jchrist.gitextender, com.atlassian.bitbucket.references, git-commit-message-plugin, io.edgeg.gtm.intellij, io.github.biezhi.plugins.gitmoji, io.github.qeesung.component.HighlightBracketPair, io.wisetime.plugins.window.branch, krasa.CpuUsageIndicator, lermitage.intellij.extra.icons, me.artspb.hackathon.git.bisect.run, mobi.hsz.idea.gitignore, ms.konovalov.intellij.hidpi-profiles, nb-mind-map-idea, net.olegg.bodylookin, net.seesharpsoft.intellij.plugins.csv, nl.bixie.intellij.uikit, nl.rubensten.texifyidea, one.util.ideaplugin.screenshoter, org.editorconfig.editorconfigjetbrains, org.exbin.deltahex.intellij, org.intellij.RegexpTester, org.jetbrains.action-tracker, LivePlugin, com.github.shiraji.findpullrequest, org.jetbrains.kotlin.native.appcode, MetricsReloaded, izhangzhihao.rainbow.brackets, org.igu.plugins.consolelog, Docker, com.vladsch.idea.multimarkdown, org.jeto.taskfocus, org.root.GoogleIt, org.sonarlint.idea, org.yseasony.sqlgenerator, pl.lksztmczk.openinterminal, some.awesome, uk.co.ben-gibson.remote.repository.mapper, wu.seal.tool.jsontokotlin

 

1 comment
Comment actions Permalink
Official comment

David, 

If you want to run tests using run configuration (scheme), then it should be created in AppCode (or in Xcode), and marked as visible (Show checkbox) if you want to see/use it in both IDEs:

 

Another option is to run tests from gutter (or from context menu invoked via right click in the test file) - in this case run configuration will be created automatically, if it doesn't yet exist:

Please sign in to leave a comment.