★ wanayoo — archive 1999 https://github.com/commercetools/commercetools-sync-java/issues/389Nouvelle recherche | Portail wanayoo
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

refactor duplicate tests for SyncOptions #389

Open
ahmetoz opened this issue May 22, 2019 · 0 comments
Open

refactor duplicate tests for SyncOptions #389

ahmetoz opened this issue May 22, 2019 · 0 comments

Comments

@ahmetoz
Copy link
Member

@ahmetoz ahmetoz commented May 22, 2019

Description

We need to refactor our tests for SyncOptions, looks like lots of duplicated tests we have for SyncOptions and SyncOptionsBuilder instances.

Here some comments about the duplicate issues for SyncOptions related unit tests from @heshamMassoud

I have a comment about the unit tests in CartDiscountSyncOptionsBuilderTest. It seems that these unit tests are now redundant in all CategorySyncOptionsBuilderTest, ProductSyncOptionsBuilderTest, InventoryEntrySyncOptionsBuilderTest, etc..

Seems like the actual logic we are testing here is all the in the BaseSyncOptionsBuilder. So maybe if we have a one unit test class for this one would be enough, instead of having to add the same unit tests again and again with every sync module we add -> More time, more redundant tests, more time in the build, etc.. WDYT? (You don't have to do it now since you already added tests and spent some time on it, but it's just a thought for the future maybe an issue for it would be good, if you agree)

#381 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.