Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Added menu option for unit testing saving journal information
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 5 Jun 2016 19:19:42 +0000 (20:19 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 5 Jun 2016 19:19:42 +0000 (20:19 +0100)
source/tests/xestiacalendar_test.cpp

index c6a602f..ff2e58c 100644 (file)
@@ -37,6 +37,7 @@ enum MenuOpts {
        TESTS_ICALLOADEVENT = 1,
        TESTS_ICALSAVEEVENT,
        TESTS_ICALLOADTODO,
+       TESTS_ICALSAVEJOURNAL,
        TESTS_ICALLOADJOURNAL,
        TESTS_ICALLOADFREEBUSY,
        TESTS_ICALSAVEFREEBUSY,
@@ -67,6 +68,7 @@ void printmenu(){
        std::cout << TESTS_ICALSAVEEVENT << ". iCalendar Event Component Save" << std::endl;
        std::cout << TESTS_ICALLOADTODO << ". iCalendar Task Component Load" << std::endl;
        std::cout << TESTS_ICALLOADJOURNAL << ". iCalendar Journal Component Load" << std::endl;
+       std::cout << TESTS_ICALSAVEJOURNAL << ". iCalendar Journal Component Save" << std::endl;
        std::cout << TESTS_ICALLOADFREEBUSY << ". iCalendar FreeBusy Component Load" << std::endl;
        std::cout << TESTS_ICALSAVEFREEBUSY << ". iCalendar FreeBusy Component Save" << std::endl;
        std::cout << TESTS_ICALLOADTIMEZONE << ". iCalendar Timezone Component Load" << std::endl;
@@ -208,6 +210,11 @@ int main(int argc, char* argv[]){
                                ::testing::GTEST_FLAG(filter) = "iCalendarJournal*";
                                TestResult = RUN_ALL_TESTS();
                                break;
+                       case TESTS_ICALSAVEJOURNAL:
+                               printn("Running iCalendar Journal Component Save tests...");
+                               ::testing::GTEST_FLAG(filter) = "iCalendarSaveJournal*";
+                               TestResult = RUN_ALL_TESTS();
+                               break;
                        case TESTS_ICALLOADFREEBUSY:
                                printn("Running iCalendar Free Busy Component tests...");
                                ::testing::GTEST_FLAG(filter) = "iCalendarFreeBusy*";
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy