-
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
Compare files outputted by the application record wise with some gold standard file. #4
Comments
What is the best design for this macro? Should it be a macro etc.? |
We need to add information about the file type in order to choose among sequence_file_in or alignment_file_in or structure_file_in etc. I suggest to define functions in the cli test class that look like the macros, e.g. |
I think you should already pass the open files. You might want to apply some filter on the comparison. For example only look at a specific fields. This can't be done with the macros that you propose or get's complicated real quick. What if you have a file that is not one of our formats? So basically we can use a range comparison for files as well. I think @marehr wanted to work on this. Let us discuss this in a meeting. |
What's the status here? In the last meeting we discussed that @marehr works on this, so I unassigned myself... |
@marehr will implement a @marehr I assigned this issue to you, s.t. none else starts to work on this. After finishing the macro, maybe you can check if it works for files and reassign the issue if more needs to be done. Just a thought dump (although you probably have that in mind already): I know you want to make the macro to prettily print the differences, which may require the range to be a forward range. Files are input ranges though. |
We had today a Sprint-Planning meeting and we concluded to use To do this, we need to make the include path |
Description
It should be possible to directly compare files within the application test infrastructure. The files should be compared record wise and output the record number for which the test failed for easier debugging. In addtion, it should be supported to provide a binary comparator such that it is possible to customise the record comparison.
Also it would be important to have an option that allows to check if one file is the permutation of another.
Acceptance criteria
Tasks
Implement a test macroEXPECT_FILES_EQ(file1, file2)
that compares the files record wiseAdd a second macro functionEXPECT_FILES_CMP_EQ(file1, file2, binary_comparator)
that compares two files record wise and uses the binary comparator to check for equality.seqan3/test/include/seqan3/test
available as include header in app testsDefinition of Done
The text was updated successfully, but these errors were encountered: