-
Notifications
You must be signed in to change notification settings - Fork 10
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
Update tests #97
Update tests #97
Conversation
What about using https://github.com/crs4/rocrate-validator in addition to/instead of some of the checks? As we know, the library still has some issues but it seems to be steadily improving. |
Yes, good suggestion. I look into that |
I cannot get it to work, did it work for you @nicobrandt ? |
We only tried it via the CLI so far. But I think programmatic validation should also work, it's just not well documented yet crs4/rocrate-validator#40 Where did you get stuck? |
Maybe this snippet helps, it's how I've added
|
"rocrate-validator validate examples/kadi4mat/collections-example.zip" |
@FlorianRhiem can you write a test for it in the tests directory? |
I just ran the code from my post above with the unzipped collections-example from PR #100 and it passes. Maybe the issue is that it's the old .eln file or that it needs to be unzipped? If that doesn't help, I can look into writing a test tomorrow. |
Well our current example is indeed not valid :P You would have to try with the fixed ones in #100 |
Actually, that just reminded me that we also had trouble using the CLI on zipped files, even when using minimal examples, while the same content was valid after unzipping. @jmanideep wanted to create an issue for that in the validator repo. |
That was the issue: that thing cannot read into zip files. |
OK, it works as intended; the latest SampleDB and Kadi4Mat examples pass all tests. |
An issue has been created in the |
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 updated the test:
It produces a nice overview like https://github.com/SteffenBrinckmann/TheELNFileFormat/actions/runs/11921882162/attempts/1#summary-33226967243
Why have 4 tests: because they fulfill separate tasks:
Also it is more impressive if 4 tests are successful, than 1 or 2.