-
Notifications
You must be signed in to change notification settings - Fork 1
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
Initial development #1
Comments
Great! I realize reading this that a few things weren't clear based on my description. Your choices make a lot of sense! Two comments:
|
I would prefer to simply use
Why would the tests need SILO URLs? My understanding was that we want to test the LAPIS API?
Usually matchers in the JS world work like |
Yes, you're right - I agree on all points. |
Should vitest be executed from this repo or does only the data live here and the test-runner is in the LAPIS repo? |
Regarding JSONs, we could have a field like "comment" or "description" that can be filled with any string. |
IMO it would be better if this repo bundles everything and the other repos only need to execute a predefined command.
I would vote for using Typescript files instead of JSON for defining the tests. The files can be as simple as returning an object, which is essentially a better version of JSON. |
I am strongly against JSON for anything but data in transit, it's a bad format for source code (which test definitions are). Typescript sounds good to me. Indeed, this repo should contain everything and package into as high level an API as possible. Though one can start lower level as it's easier during development. For a start, you want to be able to run Eventually would be good to maybe just expose this as a Github action to be callable as a single step in LAPIS and SILO. But let's not start with perfect, simple is much better for now given the urgency. |
The advantage of a JSON or another format for data would be that it would be easy to read from a different programming language. This can be useful if we want to develop an slow but simple reference implementation to check the results. |
Initial development seems done. |
.. and everything that is not done can be added as issues when desired :) |
Testset Folder
Test file
Matchers
stringEquality
- parses the result as a string and expects it to be exactly the same as the expectedResultfastaOrderInsensitive
tsvOrderInsensitive
The matcher receives paths to two files. It returns
{ success: boolean, message?: string }
.Starting SILO & LAPIS containers
Test runner execution
Tasks
(drafted together with @Taepper)
The text was updated successfully, but these errors were encountered: