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

Simplify couch_changes_tests.erl using macro ?TDEF_FE #4898

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

jiahuili430
Copy link
Contributor

@jiahuili430 jiahuili430 commented Dec 6, 2023

Overview

  • Simplify couch_changes_tests.erl using macro ?TDEF_FE
  • Re-enable testing: filter_by_custom_function()
  • Add _changes tests with style and include_docs

Testing recommendations

make eunit apps=couch suites=couch_changes_tests

Related Issues or Pull Requests

Checklist

  • Code is written and works correctly
  • Changes are covered by tests
  • Any new configurable parameters are documented in rel/overlay/etc/default.ini
  • Documentation changes were made in the src/docs folder
  • Documentation changes were backported (separated PR) to affected branches

@jiahuili430 jiahuili430 marked this pull request as draft December 6, 2023 19:33
@jiahuili430 jiahuili430 force-pushed the refactor-couch-changes-tests branch 6 times, most recently from 7af2e1d to 9b722cc Compare December 6, 2023 22:02
@jiahuili430 jiahuili430 marked this pull request as ready for review December 6, 2023 22:04
Copy link
Contributor

@nickva nickva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 well done, that'a a nice cleanup

@nickva
Copy link
Contributor

nickva commented Dec 7, 2023

The style_and_include_docs test looks like a nice addition. One improvement we can do there in a separate PR after this merges, is to try to create a more complex revision tree so the all_docs and main styles actually return different results.

The revision tree we create doesn't have to be too complex, just to cover at least one live conflict, one deleted conflict, and a deleted doc. I'll see if I can find an example on how to do as it can be a bit tricky...

- Simplify `couch_changes_tests.erl` using macro `?TDEF_FE`
- Re-enable testing: `filter_by_custom_function()`
- Add `_changes` tests with style and include_docs
@jiahuili430
Copy link
Contributor Author

Sure, I will add more test cases. Thank you for the review.

@jiahuili430 jiahuili430 merged commit 63fd5b9 into main Dec 7, 2023
14 checks passed
@jiahuili430 jiahuili430 deleted the refactor-couch-changes-tests branch December 7, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants