elementary / elementary/calendar

Add unit tests for event parsing

Open
#222 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
136
Forks
42
Avg merge
8h 33m
Merged PRs (30d)
3

Description

The calendar allows users to add events using natural language processing see:
- Commit: https://github.com/elementary/calendar/commit/8a2063007acd73cbecf8d5c6877aafe20ee8b214
- [Add natural language parsing info #219](https://github.com/elementary/calendar/issues/219)

I'd like to improve it, but this is one of those prime examples where using unit tests would make that a lot easier.
Examples of unit tests in elementary:
- https://github.com/elementary/files/tree/master/libcore/tests/
- https://github.com/elementary/music/tree/master/core/Tests

But, adding tests [in Cmake](https://github.com/elementary/files/blob/master/libcore/tests/UtilTests/CMakeLists.txt) seems a lot harder than [in meson](https://github.com/elementary/music/blob/master/core/Tests/meson.build), so I think I'll wait for that to happen first.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55046238-add-unit-tests-for-event-parsing?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.