sib-swiss / sparql-examples-utils

A tool to maintain and test your SPARQL examples
Other
2 stars 1 forks source link

Fix build for new CLI with subcommands and now check if query returns at least one result when running `testAllQueriesRun()` #1

Closed vemonet closed 2 weeks ago

vemonet commented 3 weeks ago

I have tried slow tests with the MetaNetX example folder (it completes quickly), when adding an error to get 0 results for one of the query I get this readable and helpful output:

      └─ testAllQueriesRun() ✔
         ├─ MetaNetX/8.ttl ✔
         ├─ MetaNetX/5.ttl ✘ Expected at least one result but got none. ==> expected: <true> but was: <false>
         ├─ MetaNetX/9.ttl 14548 ms ✔
         ├─ MetaNetX/2.ttl ✔
         ├─ MetaNetX/3.ttl ✔
         ├─ MetaNetX/1.ttl ✔
         ├─ MetaNetX/7.ttl ✔
         ├─ MetaNetX/4.ttl ✔
         ├─ MetaNetX/11.ttl ✔
         ├─ MetaNetX/13.ttl ✔
         ├─ MetaNetX/10.ttl ✔
         ├─ MetaNetX/12.ttl ✔
         └─ MetaNetX/6.ttl ✔

@JervenBolleman

JervenBolleman commented 2 weeks ago

Sorry, implement parts differently. I did cherry-pick the last commit, removed the README changes as they are no longer correct.