-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ICTL-908] Test Compiler for Kotlin (#282)
* Parsing LLM Response for Kotlin tests * last fixes of merge conflicts * klint * build problem fix * refactoring of packages * refactoring packages * minimal buggy version of kotlin compilation cycle * reduced the code * reduced the code, fixed the representation bug * solved imports problem * retirned back the compiler * version with kotlinc * working kotlinc * changes in compiler * solved the problem with package * klint * Update Run IDE for UI Tests.run.xml * klint * refactoring * klint * merge * fixes after the review * deleted companion object * merge fixes * factory for parsers * interface for compilation * before adjusting the code to the diagram * new implementation of TestAssembler * small refactoring * deleted todo * fixed problem with the missing package * fixing the compilation bug * fixed problem with missing } in the test class * added more logging * reduced the duplication in finding package name * added some documentation and renamed the packageLine and packageString to the packageName * klint * fixing the problem with JavaTestCaseDisplayService * klint * fixing the problem with package * fix: rename Language * fix: import pattern for Kotlin comment * fix: renaming of methods in TestClassBuilderHelper * fix: added displayTestCase * fix: findJavaCompilerInDirectory * fix: some left fixes * done with fixes * deleted unnecessary line * fixed java * last renamint
- Loading branch information
1 parent
2fd44f0
commit edfdba2
Showing
58 changed files
with
2,497 additions
and
1,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
core/src/main/kotlin/org/jetbrains/research/testspark/core/test/TestBodyPrinter.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.jetbrains.research.testspark.core.test | ||
|
||
import org.jetbrains.research.testspark.core.test.data.TestLine | ||
|
||
interface TestBodyPrinter { | ||
/** | ||
* Generates a test body as a string based on the provided parameters. | ||
* | ||
* @param testInitiatedText A string containing the upper part of the test case. | ||
* @param lines A mutable list of `TestLine` objects representing the lines of the test body. | ||
* @param throwsException The exception type that the test function throws, if any. | ||
* @param name The name of the test function. | ||
* @return A string representing the complete test body. | ||
*/ | ||
fun printTestBody( | ||
testInitiatedText: String, | ||
lines: MutableList<TestLine>, | ||
throwsException: String, | ||
name: String, | ||
): String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
core/src/main/kotlin/org/jetbrains/research/testspark/core/test/TestSuiteParserStrategy.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.