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 tests #1

Open
josueBarretogit opened this issue Aug 4, 2024 · 3 comments
Open

Make tests #1

josueBarretogit opened this issue Aug 4, 2024 · 3 comments
Assignees
Labels
Status: In progress An issue that is being worked on

Comments

@josueBarretogit
Copy link
Owner

I have no idea how to test the App itself, I can start making test for the filter to make sure they work but other than that i dont know

@josueBarretogit
Copy link
Owner Author

Also integrate workflows

@josueBarretogit josueBarretogit self-assigned this Aug 6, 2024
@josueBarretogit josueBarretogit added the Status: In progress An issue that is being worked on label Aug 10, 2024
@meisimo
Copy link

meisimo commented Aug 20, 2024

If you started developing everithing without unit or integration tests could be frustrating to start now with those "low level" tests, that doesn't ensure that your app does what is suppose to do. So one thing that you could try is to make some E2E tests as regretion tests, I mean, to make sure that what works is still working after any change. Taking the core features and start by making some happy path tests of them.

The only anoying thing with this particular kind of App is how to mock the external APIs without touching too much code (or any code ideally). In that case I think trying mockito could help to mock the API responses or a less intrusive option could be an external mock service as hoverfly that is not too hard to configure.

@josueBarretogit
Copy link
Owner Author

Thanks for the suggestions, One thing I'm struggling with right now is making tests, specially those that require something "external" like functions that make API calls and testing a function that make directories, how can I write tests for those? I'll be investigating more about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In progress An issue that is being worked on
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants