-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Tech Debt] Automated tests for goal templates #1686
Comments
✨ Thanks for sharing your idea! ✨ This repository uses lodash style issue management for enhancements. That means enhancement issues are automatically closed. This doesn’t mean we don’t accept feature requests, though! We will consider implementing ones that receive many upvotes, and we welcome contributions for any feature requests marked as needing votes (just post a comment first so we can help you make a successful contribution). The enhancement backlog can be found here: https://github.com/actualbudget/actual/issues?q=label%3A%22needs+votes%22+sort%3Areactions-%2B1-desc+ Don’t forget to upvote the top comment with 👍! |
In my opinion this is a must. Especially since the implementation of the goals should definitely be improved. The currently implementation in goalTemplates.ts is a mess, to be brutally honest. A good test suite will prevent any regressions during the refactoring. This would be the ideal place to apply the strategy pattern |
I think this should not be a feature request but an ongoing sort of thing. Like it shouldn't be tucked away in the feature requests but front and center in the issues page so that possible contributors will have visibility that more tests are needed for the project. |
Moved from feature -> issue |
This should be easier now that the template code is better consolidated. We need tests, mostly for the processing functions. As a basis for testing Ive attached my testing budget that includes templates and expected budget amounts for the categories. Amounts are only correct if run in Aug 2023. |
Verified feature request does not already exist?
💻
Pitch: what problem are you trying to solve?
There are a lot of possible variations when using goal templates because there can be multiple templates in a single category. The goal templates could use a test suit to test all of the various conditions and to verify there aren't any regressions. This would provide a repeatable method of testing. As it is currently, the testing is a manual process.
Describe your ideal solution to this problem
No response
Teaching and learning
No response
The text was updated successfully, but these errors were encountered: