@@ -24,6 +24,7 @@ struct ExportCommandTests {
2424 #expect ( ! fc . features . isEmpty )
2525 }
2626
27+ #if EnableGPX
2728 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
2829 func exportGpxToGeoJson ( ) throws {
2930 let path = try generateSmallGpx ( ) . path
@@ -33,7 +34,9 @@ struct ExportCommandTests {
3334 let fc = try assertGeoJsonFile ( at : outUrl )
3435 #expect ( ! fc . features . isEmpty )
3536 }
37+ #endif
3638
39+ #if EnableCSV
3740 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
3841 func exportCsvToGeoJson ( ) throws {
3942 let path = try generateSmallCsv ( ) . path
@@ -43,7 +46,9 @@ struct ExportCommandTests {
4346 let fc = try assertGeoJsonFile ( at : outUrl )
4447 #expect ( ! fc . features . isEmpty )
4548 }
49+ #endif
4650
51+ #if EnableShapefile
4752 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
4853 func exportShapefileToGeoJson ( ) throws {
4954 let path = try generateSmallShapefile ( ) . path
@@ -53,7 +58,9 @@ struct ExportCommandTests {
5358 let fc = try assertGeoJsonFile ( at : outUrl )
5459 #expect ( ! fc . features . isEmpty )
5560 }
61+ #endif
5662
63+ #if EnableGeoPackage
5764 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
5865 func exportGeoPackageToGeoJson ( ) async throws {
5966 let path = try await generateSmallGeoPackage ( ) . path
@@ -63,7 +70,9 @@ struct ExportCommandTests {
6370 let fc = try assertGeoJsonFile ( at : outUrl )
6471 #expect ( ! fc . features . isEmpty )
6572 }
73+ #endif
6674
75+ #if EnableMLT
6776 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
6877 func exportMltToGeoJson ( ) throws {
6978 let path = try generateSmallMlt ( ) . path
@@ -73,6 +82,7 @@ struct ExportCommandTests {
7382 let fc = try assertGeoJsonFile ( at : outUrl )
7483 #expect ( ! fc . features . isEmpty )
7584 }
85+ #endif
7686
7787 @ Test ( . timeLimit ( . minutes ( 1 ) ) )
7888 func exportWithCompression ( ) throws {
0 commit comments