diff --git a/src/test/kotlin/javabot/operations/ChatGPTOperationTest.kt b/src/test/kotlin/javabot/operations/ChatGPTOperationTest.kt index 04a7aa4e..0eb45707 100644 --- a/src/test/kotlin/javabot/operations/ChatGPTOperationTest.kt +++ b/src/test/kotlin/javabot/operations/ChatGPTOperationTest.kt @@ -2,6 +2,7 @@ package javabot.operations import com.google.inject.Inject import javabot.BaseTest +import javabot.Javabot.Companion.LOG import javabot.JavabotConfig import org.testng.Assert.assertTrue import org.testng.annotations.Test @@ -18,6 +19,9 @@ class ChatGPTOperationTest : BaseTest() { if (config.chatGptKey().isNotEmpty()) { val response = operation.handleMessage(message("~gpt speed of an african laden swallow")) assertTrue(response.isEmpty()) + LOG.info("ChatGPT inappropriate (non-java) content test passed") + } else { + LOG.info("ChatGPT testing skipped, no key configured") } } @@ -27,6 +31,9 @@ class ChatGPTOperationTest : BaseTest() { val response = operation.handleMessage(message("~gpt what is the maven directory structure")) assertTrue(response.isNotEmpty()) assertTrue(response[0].value.contains("src/main/java")) + LOG.info("ChatGPT appropriate content passed: ${response[0].value}") + } else { + LOG.info("ChatGPT testing skipped, no key configured") } } }