-
Notifications
You must be signed in to change notification settings - Fork 18
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
test: Improve test for serving ontologies in different formats #3115
test: Improve test for serving ontologies in different formats #3115
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3115 +/- ##
==========================================
+ Coverage 11.74% 13.15% +1.40%
==========================================
Files 246 264 +18
Lines 22907 22395 -512
==========================================
+ Hits 2690 2945 +255
+ Misses 20217 19450 -767 ☔ View full report in Codecov by Sentry. |
af5d793
to
6ddc1df
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Judging by the description sounds good, however one question – could it be that some routes now have less integration test coverage?
this test (mostly) only tests one route, so it is fairly confined where we might have lost coverage. The only thing I can think of that might have lost test coverage now, is if we have any ontology features that were used in some of the no-longer-requested project ontologies, but are not used in the anything ontology (which is still tested here). But this would be limited to things like different value types or stuff like that, so if we lose any coverage here at all, it should only be stuff that is covered by other tests. But I can't say 100% for sure. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess corresponding tests tests need to be removed on the dsp-js side... :)
made necessary due to dasch-swiss/dsp-api#3115
Pull Request Checklist
Task Description
This PR attempts to make the approval tests more ergonomic and feel more like "real" approval tests.
It also removes redundant test cases.
knora-api
can be retrieved through two separate routes; instead of checking both against the same files, the test now ensures that both routes return the same content.knora-api
,salsah-gui
andstandoff
allOntologyMetadata
incunabulaOntologyMetadata
beolOntologyMetadata
incunabulaOntologySimple
incunabulaOntologyWithValueObjects
knoraApiSimpleHasColor
knoraApiWithValueObjectsHasColor
incunabulaSimplePubDate
incunabulaWithValueObjectsPubDate
incunabulaPageAndBookWithValueObjects
boxOntologyWithValueObjects
minimalOntologyWithValueObjects
imagesBild
incunabulaBook
incunabulaPage
anythingHasDate
imagesTitel
incunabulaPartOf
anythingOntologySimple
anythingHasListItemSimple
anythingHasListItem
anythingThingSimple
anythingThing
all-ontology-metadata-response
get-ontologies-project-incunabula-response
get-ontologies-project-beol-response
incunabula-ontology
minimal-ontology
get-class-image-bild-response
get-class-incunabula-book-response
get-property-DateValue-response
get-property-textValue-response
get-property-linkvalue-response
PR Type
Basic requirements for bug fixes and features
Does this PR introduce a breaking change?
Does this PR change client-test-data?