Annotation Interface VCRRecord


@Target(METHOD) @Retention(RUNTIME) public @interface VCRRecord
Forces a specific test method to use RECORD mode, overriding the class-level VCR mode.

When applied to a test method, this annotation forces that specific test to always make real API calls and record the responses, regardless of the class-level VCRTest.mode() setting.

Example usage:


 @VCRTest(mode = VCRMode.PLAYBACK)
 class MyLLMIntegrationTest {

     @Test
     void usesPlayback() {
         // Uses cached responses
     }

     @Test
     @VCRRecord
     void forcesRecording() {
         // Always makes real API calls and updates cache
     }
 }
 
See Also: