Skip to content

Testing

Derek Antrican edited this page Aug 24, 2019 · 5 revisions

Currently, GAS-ICS-Sync does not have a form of unit testing. So here are some steps to do a test to verify the script is providing the same results as Google Calendar.

  1. First, if your changes only affect adding events, I would suggest you make the temporary change detailed here: https://github.com/derekantrican/GAS-ICS-Sync/wiki/Debugging-tips
  2. Put the ics/ical url into sourceCalendarURL
  3. Make sure that addEventsToCalendar is turned on (along with any other settings that your change might affect)
  4. Run the main() function. If your change affects modifying existing events or removing existing events, you may have to run it a couple times
  5. Once that is completed, download the ics/ical file from the url to your computer
  6. Go to https://calendar.google.com/calendar/r/settings/export and import that file into the same calendar (or another test calendar)
  7. Verify that the events overlap exactly

IMPORTANT NOTE: until #7 is fixed, you may not see overlapping events for recurring events. Only the first instance of recurring events will be added.


Test Calendars (if anyone wants me to remove a calendar for privacy reasons, I can absolutely do so)