diff --git a/appveyor.yml b/appveyor.yml
index c7e308dae0f1698985359e511eee18394b2f3e7c..6c728a8b38b7d1020aed5d7f414a4792d7593a2a 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -67,17 +67,10 @@ build_script:
 - cmd: if [%COMPILER%]==[msvc] (cd build & cmake --build . --target ALL_BUILD --config MinSizeRel || exit 1 & cd ..)
 
 test_script:
-- cmd: if [%COMPILER%]==[mingw] (cd build-debug & ctest --verbose || exit 1 & cd ..)
-- cmd: if [%COMPILER%]==[mingw] (cd build-release & ctest --verbose || exit 1 & cd ..)
-- cmd: if [%COMPILER%]==[msvc] (cd build & ctest --verbose -C "Debug" || exit 1 & cd ..)
-- cmd: if [%COMPILER%]==[msvc] (cd build & ctest --verbose -C "MinSizeRel" || exit 1 & cd ..)
-
-after_test:
-- cmd: if [%COMPILER%]==[mingw] (cd build-debug & cmake --build . --target install || exit 1 & cd ..)
-- cmd: if [%COMPILER%]==[msvc] (cd build & cmake --build . --target INSTALL --config Debug || exit 1 & cd ..)
-#  - cmd: ren install debug
-- cmd: if [%COMPILER%]==[mingw] (cd build-release & cmake --build . --target install || exit 1 & cd ..)
-- cmd: if [%COMPILER%]==[msvc] (cd build & cmake --build . --target INSTALL --config MinSizeRel || exit 1 & cd ..)
+- cmd: if [%COMPILER%]==[mingw] (cd build-debug & ctest --verbose --output-on-failure || exit 1 & cd ..)
+- cmd: if [%COMPILER%]==[mingw] (cd build-release & ctest --verbose --output-on-failure || exit 1 & cd ..)
+- cmd: if [%COMPILER%]==[msvc] (cd build & ctest --verbose --output-on-failure -C "Debug" || exit 1 & cd ..)
+- cmd: if [%COMPILER%]==[msvc] (cd build & ctest --verbose --output-on-failure -C "MinSizeRel" || exit 1 & cd ..)
 
 #---------------------------------#
 #         notifications           #
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f383e6bf5b67d2f00ffc0b490485aabce155fda9..e4ddd8fc6f518e99c7b299559931f5bbca5fa745 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -13,6 +13,9 @@ foreach(FILENAME ${TESTS})
     target_include_directories(${TEST_PROJ} PRIVATE ${CATCH2_INCLUDE_DIR})
     target_link_libraries(${TEST_PROJ} ${CMAKE_THREAD_LIBS_INIT})
 
+    if(WIN32)
+        target_link_libraries(${TEST_PROJ} wsock32 ws2_32)
+    endif()
     if(MSVC)
         set_target_properties(${TEST_PROJ} PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
     endif()