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

Improve GitContextTest tests to actually test something #892

Open
salimbouch opened this issue Dec 12, 2024 · 0 comments
Open

Improve GitContextTest tests to actually test something #892

salimbouch opened this issue Dec 12, 2024 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@salimbouch
Copy link
Contributor

Expected behavior

As an IDEasy developer, I want unit tests that actually test whether something is correct or wrong.

Actual behavior

Right now the class GitContextTest has 3 methods (testIsRepositoryUpdateAvailableNoUpdates, testFetchIfNeededRecentFetchHead, testFetchIfNeededOffline) that only check whether an empty initialized variable is empty or not, therefore not really testing anything and just increasing the coverage for no reason.

@salimbouch salimbouch added bug Something isn't working enhancement New feature or request labels Dec 12, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in IDEasy board Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant