Skip to content

Commit

Permalink
feat(devins-cpp): add support for IDEA version 222 OCLanguage in test…
Browse files Browse the repository at this point in the history
… discovery
  • Loading branch information
phodal committed Mar 25, 2024
1 parent 49e2ae6 commit 551d815
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -20,6 +20,7 @@ class CppAutoTestService : AutoTestService() {
// TODO in Cpp233 and Cpp222 the RunProfile is different, maybe we can use the same RunProfile in future
override fun runConfigurationClass(project: Project): Class<out RunProfile>? = null
override fun isApplicable(element: PsiElement): Boolean = element.language is OCLanguage
override fun psiFileClass(project: Project): Class<out PsiElement> = OCFile::class.java

override fun findOrCreateTestFile(sourceFile: PsiFile, project: Project, element: PsiElement): TestFileContext? {
// 1. check project root test folder, if not exist, create it
Expand Down

0 comments on commit 551d815

Please sign in to comment.