@@ -3,7 +3,6 @@ import SwiftParser
33import SwiftSyntax
44import Testing
55
6- @testable import SyntaxKit
76
87/// Harness for extracting and testing documentation code examples
98internal class DocumentationTestHarness {
@@ -174,13 +173,13 @@ internal class DocumentationTestHarness {
174173
175174 // If compilation succeeded, try to run it (for runnable examples)
176175 if isRunnableExample ( code) {
177- let executeResult = try await executeCompiledSwift ( tempFile)
176+ // let executeResult = try await executeCompiledSwift(tempFile)
178177 return ValidationResult (
179- success: executeResult . success ,
178+ success: true ,
180179 filePath: filePath,
181180 lineNumber: lineNumber,
182181 testType: . execution,
183- error: executeResult . error
182+ error: nil
184183 )
185184 } else {
186185 // Just compilation test for non-runnable code
@@ -332,13 +331,6 @@ internal class DocumentationTestHarness {
332331 return CompilationResult ( success: true , error: nil )
333332 }
334333
335- /// Executes compiled Swift code
336- private func executeCompiledSwift( _ fileURL: URL ) async throws -> CompilationResult {
337- // For documentation examples, we generally only test compilation
338- // Execution would require more complex setup with proper module dependencies
339- CompilationResult ( success: true , error: nil )
340- }
341-
342334 /// Determines if a code example should be executed (vs just compiled)
343335 private func isRunnableExample( _ code: String ) -> Bool {
344336 // Simple heuristics for runnable examples
@@ -442,8 +434,7 @@ internal class DocumentationTestHarness {
442434
443435 let projectRoot =
444436 currentFileURL
445- . deletingLastPathComponent ( ) // Tests/SyntaxKitTests/Integration
446- . deletingLastPathComponent ( ) // Tests/SyntaxKitTests
437+ . deletingLastPathComponent ( ) // Tests/SyntaxDocTests
447438 . deletingLastPathComponent ( ) // Tests
448439 . deletingLastPathComponent ( ) // Project root
449440
0 commit comments