Skip to content
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

Redesign and revise tests #91

Open
colindaven opened this issue Nov 13, 2020 · 2 comments
Open

Redesign and revise tests #91

colindaven opened this issue Nov 13, 2020 · 2 comments
Assignees

Comments

@colindaven
Copy link
Contributor

TODO

For filenames, test should rename filenames created with test system to avoid having to change test

mv someFancyName1 test1.bam.txt
mv someFancyName_dup2 test2.bam.txt

@B1T0 B1T0 self-assigned this Jan 13, 2021
@B1T0
Copy link
Collaborator

B1T0 commented Mar 9, 2021

I have started to write a more rigorous testing in my fork to allow for somewhat easier testing.

What do you think how detailed should the tests be? Do we need unit tests for every function of the script or is it enough to use functional tests as before (and implemented already)?

Do you have a "wishlist" for the test features? Currently, the test suite looks for all read files and references available in the test/data folder and tries to run the pipeline for each combination. I am thinking of adding an option to specify test matrix for options and read/reference combinations (eg. by giving a json file(?)).

Is the rigorousity too much?

What are your opinions? @colindaven @poer-sophia

@colindaven
Copy link
Contributor Author

colindaven commented Mar 9, 2021

Hi Tobias

I think something simple and robust would be good. The aim should be to test the general functionality of the program and report -non-exhaustively - that things look ok.

For me, a huge test of every feature means we need to put a lot of effort into monitoring the test, and adding new tests for each feature. This probably exceeds the scope and time of what we can put into this. Simple tests can help users to gain confidence that their installation and conda env are fine, without ovewhelming them with info.

cheers
Colin

The files for the simple version are here (but the code for this is flaky, not robust, and old, so needs revising:
https://github.com/MHH-RCUG/Wochenende/tree/master/testdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants