File tree 7 files changed +51
-2
lines changed
7 files changed +51
-2
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
/.build
3
3
/build
4
+ /b
4
5
/Packages
5
6
xcuserdata /
6
7
DerivedData /
Original file line number Diff line number Diff line change @@ -8,10 +8,18 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
8
8
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin)
9
9
set (CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR} /swift)
10
10
11
- option (SWIFT_WEBDRIVER_BUILD_WINAPPDRIVER "Build WinAppDriver functionality." TRUE )
11
+ option (SWIFT_WEBDRIVER_BUILD_WINAPPDRIVER "Build WinAppDriver functionality." YES )
12
12
13
- add_subdirectory (Sources /WebDriver)
13
+ include (CTest)
14
+ if (BUILD_TESTING)
15
+ add_compile_options ($<$<COMPILE_LANGUAGE:Swift>:-enable-testing>)
16
+ endif ()
14
17
18
+ add_subdirectory (Vendor)
19
+ add_subdirectory (Sources /WebDriver)
15
20
if (SWIFT_WEBDRIVER_BUILD_WINAPPDRIVER)
16
21
add_subdirectory (Sources /WinAppDriver)
17
22
endif ()
23
+ if (BUILD_TESTING)
24
+ add_subdirectory (Tests)
25
+ endif ()
Original file line number Diff line number Diff line change
1
+ ---
Original file line number Diff line number Diff line change
1
+ Start testing: Apr 29 10:52 Pacific Daylight Time
2
+ ----------------------------------------------------------
3
+ End testing: Apr 29 10:52 Pacific Daylight Time
Original file line number Diff line number Diff line change
1
+ add_library (TestsCommon
2
+ Common/PNGUtilities.swift)
3
+
4
+ SwiftTesting_GenerateDerivedSources()
5
+ add_executable (SwiftWebdriverPackageTests
6
+ UnitTests/APITests.swift
7
+ UnitTests/MockWebDriver.swift
8
+ ${swiftwebdriver_SwiftTesting_Sources} )
9
+ set_target_properties (SwiftWebdriverPackageTests PROPERTIES
10
+ SUFFIX .swift-testing)
11
+ target_link_libraries (SwiftWebdriverPackageTests PRIVATE
12
+ WebDriver
13
+ Testing
14
+ TestsCommon)
15
+
16
+ add_test (NAME SwiftWebdriverPackageTests
17
+ COMMAND SwiftWebdriverPackageTests)
Original file line number Diff line number Diff line change
1
+ include (FetchContent)
2
+
3
+ # Ignore warnings from dependencies' source code.
4
+ add_compile_options ($<$<COMPILE_LANGUAGE:Swift>:-suppress-warnings>)
5
+ add_compile_options ($<$<COMPILE_LANGUAGE:Swift>:-suppress-remarks>)
6
+
7
+ if (BUILD_TESTING)
8
+ include (SwiftTesting.cmake)
9
+ endif ()
Original file line number Diff line number Diff line change
1
+ FetchContent_Declare(SwiftTesting
2
+ # GIT_REPOSITORY https://github.com/apple/swift-testing.git
3
+ # GIT_TAG e07ef28413b5be951fa5672b290bc10fa2e3cd65)
4
+ GIT_REPOSITORY https://github.com/thebrowsercompany/swift-testing.git
5
+ GIT_TAG cef620855b4ed1c8e43a43372ee9d517b2cd71bd)
6
+ FetchContent_GetProperties(SwiftTesting)
7
+ if (NOT SwiftTesting_POPULATED)
8
+ message (STATUS "syncing SwiftTesting" )
9
+ FetchContent_MakeAvailable(SwiftTesting)
10
+ endif ()
You can’t perform that action at this time.
0 commit comments