Unifying similar test functions together
Open
priority: medium
test_cases
- Dominant language
- Python
- Stars
- 253
- Forks
- 59
- PR merge metrics
- No merged PRs in 30d
Description
There are many processors which are testing very similar things. E.g. all the tokenizer tests are testing the tokens created by those processors which are same for our test cases. Can we combine these common parts to have less duplicate code?
Also, find other ways to structure our test framework as the number of processors increase.
Contributor guide
Research direction
Start by inventorying the processor tests, especially the tokenizer tests, and compare their repeated token assertions. Review how the test framework is structured as processors increase. Done means common test logic is consolidated without changing coverage and the test suite still passes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100