Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit testing #27

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ os:
script:
- cmake .
- make all
- cd test && ctest .

23 changes: 23 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,26 @@ TARGET_LINK_LIBRARIES(PreviewFile route4me)
ADD_EXECUTABLE(UploadFile UploadFile.cpp)
TARGET_LINK_LIBRARIES(UploadFile route4me)

ENABLE_TESTING()

ADD_TEST(DuplicateRoute DuplicateRoute)
ADD_TEST(GetRouteByPoints GetRouteByPoints)
ADD_TEST(GetRouteByDirections GetRouteByDirections)
ADD_TEST(GetRouteByText GetRouteByText)
ADD_TEST(UpdateRoute UpdateRoute)
ADD_TEST(AddressBook AddressBook)
ADD_TEST(Notes Notes)
ADD_TEST(Users Users)
ADD_TEST(Orders Orders)
ADD_TEST(TeamActivities TeamActivities)
ADD_TEST(Zones Zones)
ADD_TEST(Territory Territory)
ADD_TEST(GetAllRoutes GetAllRoutes)
ADD_TEST(RouteStatus RouteStatus)
ADD_TEST(SingleDriverRoundTrip SingleDriverRoundTrip)
ADD_TEST(ActivitiesByType ActivitiesByType)
ADD_TEST(AssetTracking AssetTracking)
ADD_TEST(GetLocationHistory GetLocationHistory)
ADD_TEST(GetOptimization GetOptimization)
ADD_TEST(BatchGeocoding BatchGeocoding)
ADD_TEST(GetConfig GetConfig)