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

✅ Make testing easier #12

Open
2 of 4 tasks
hgwood opened this issue Sep 29, 2020 · 0 comments
Open
2 of 4 tasks

✅ Make testing easier #12

hgwood opened this issue Sep 29, 2020 · 0 comments

Comments

@hgwood
Copy link
Member

hgwood commented Sep 29, 2020

Some ideas to improve the experience of developing this tool:

  • Add a dry run mode: runs normally except that it logs what should be written to Google Calendar instead of actually writing it.
  • Add a flag-as-test mode: runs normally but flags events written to Google Calendar as tests (by adding [TEST] in the summary for example)
  • Allow for the target calendar to be overridden using a calendar ID in an environment variable so that all events are written to it instead of the primary calendar of any given user. This target calendar must be writeable for all users.
  • Extract a pure function from the current code base that can map a collection of Alibeez leaves to a collection of { action, eventId, eventBody } triplet so that testing this mapping becomes trivial and modifying it is safer.
@hgwood hgwood changed the title ✅ Facilitate testing ✅ Make testing easier Sep 29, 2020
hgwood added a commit that referenced this issue Oct 1, 2020
hgwood added a commit that referenced this issue Oct 1, 2020
hgwood added a commit that referenced this issue Oct 7, 2020
hgwood added a commit that referenced this issue Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant