-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[chore] Add pytest-cov
and add test coverage command to the Makefile
#2794
Conversation
Do you generally use the We can add
|
I tend to use the xml reports, since they are commonly accepted by tools like codecov. But since With regards to the Makefile + arguments, I am not sure if they play nice together... I'll look into it. |
23dfa17
to
30064e2
Compare
Otherwise we can leave it as-is and just do
|
Allow inheriting the Transformer class (UKPLab#2810) [`feat`] Add hard negatives mining utility (UKPLab#2768) * Add hard negatives mining utility * Add example datasets/models for hard negative mining tip * Update phrasing in dataset overview [chore] add test for NoDuplicatesBatchSampler (UKPLab#2795) * add test for NoDuplicatesBatchSampler * formatting * simplify tests [chore] Add test for RoundrobinBatchSampler (UKPLab#2798) * Add test for RoundrobinBatchSampler * fix test * improve RoundRobinBatchSampler and add additional test * Make datasets in ConcatDataset different sizes As the real "use case" of the RoundRobin sampler is to avoid sampling from one dataset more than from another. This is best tested when the datasets have different sizes. --------- Co-authored-by: Tom Aarsen <[email protected]> [feat] Improve GroupByLabelBatchSampler (UKPLab#2788) * Improve GroupByLabelBatchSampler * small fix * improve test * Update sentence_transformers/sampler.py Co-authored-by: Tom Aarsen <[email protected]> * fix sampler and add unit test * fix comment * remove .DS_Store * rm DS_Store * change self.groups statement * move to damplers dir * Update sentence_transformers/sampler.py Co-authored-by: Tom Aarsen <[email protected]> * Add typing --------- Co-authored-by: Tom Aarsen <[email protected]> Co-authored-by: Tom Aarsen <[email protected]> [`chore`] Clean-up `.gitignore` (UKPLab#2799) add test coverage command add to workflow fix cicd fix cicd fix leave cicd untouched fix gitignore fix gitignore update gitignore update gitignore fix gitignore fix gitignor
5b64364
to
12fa14a
Compare
I think it would be a good idea to increase test coverage of some of the modules in the project. In order to identify which modules could benefit from additional unit tests, I propose to add
pytest-cov
to the project, and an additional command in the Makefile to help generate the report locally.