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

[Tech Debt] Automated tests for goal templates #1686

Open
1 of 2 tasks
shall0pass opened this issue Sep 11, 2023 · 5 comments
Open
1 of 2 tasks

[Tech Debt] Automated tests for goal templates #1686

shall0pass opened this issue Sep 11, 2023 · 5 comments
Labels
goal templates Related to the experimental goal templates feature good first issue Good for newcomers help wanted Extra attention is needed tech debt Technical debt we should pay down

Comments

@shall0pass
Copy link
Contributor

Verified feature request does not already exist?

  • I have searched and found no existing issue

💻

  • Would you like to implement this feature?

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

@shall0pass shall0pass added feature This issue is a feature request goal templates Related to the experimental goal templates feature labels Sep 11, 2023
@github-actions github-actions bot added the needs votes Please upvote this feature request if you would like to see it implemented! label Sep 11, 2023
@github-actions
Copy link
Contributor

✨ 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 👍!

@LarsStegman
Copy link

LarsStegman commented Sep 25, 2023

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

@joel-jeremy
Copy link
Contributor

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.

@youngcw youngcw added good first issue Good for newcomers help wanted Extra attention is needed tech debt Technical debt we should pay down and removed feature This issue is a feature request needs votes Please upvote this feature request if you would like to see it implemented! labels Jul 17, 2024
@youngcw youngcw reopened this Jul 17, 2024
@youngcw youngcw changed the title [Feature] Goals: Automated tests [Tech Debt] Automated tests for goal templates Jul 17, 2024
@youngcw
Copy link
Member

youngcw commented Jul 17, 2024

Moved from feature -> issue

@youngcw
Copy link
Member

youngcw commented Nov 5, 2024

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.
template.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
goal templates Related to the experimental goal templates feature good first issue Good for newcomers help wanted Extra attention is needed tech debt Technical debt we should pay down
Projects
None yet
Development

No branches or pull requests

4 participants