cancervariants / therapy-normalization

Services and guidelines for normalizing drug and other therapy terms
https://normalize.cancervariants.org/therapy/
MIT License
10 stars 3 forks source link

Refactor tests #147

Open jsstevenson opened 3 years ago

jsstevenson commented 3 years ago
jsstevenson commented 1 year ago

The above is fine, but I think the big one is restructuring tests of ETL classes to simply confirm that data is correctly being uploaded into the DB. Right now, we check this indirectly by having test cases use the query module to run searches, but that's really just an indirect test (more of an integration). Instead, we should be testing that ETL classes upload data in the correct way, and then, that given a particular test DB, the query class can look it up correctly.

In general, this library's test infrastructure costs a lot of time relative to how informative and helpful those tests are -- I think it would benefit greatly from rethinking how it is tested.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 90 days with no activity. This issue will be closed if no further activity occurs in 14 days.