-
-
Notifications
You must be signed in to change notification settings - Fork 67
Add tests for the examples #61
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
Conversation
I also enabled docker for Travis CI because some examples depend on it. |
I agree that Sections 7 onward should use outputs appropriately
Since these are all after Episode 7 "Running Tools Inside Docker" then we can add a |
Again, we can add a |
I see. I will add tests for section 2 and 3 that just check that the execution will succeed.
That will be nice. Once these tests use docker containers, we will add more precise checking for checksum and size. By the way, is it reasonable to use
I prefer to use hints because it makes easier for readers and also makes a test in Travis CI consistent with the reader's environment. I will update the PR to reflect your comment. |
Seems that we should switch to
Yes, they can go in the |
Done!
Other issues such as side effects and docker images will be solved by other requests. |
:-) Let me know when you want a final review and merge. |
I added checking checksums and sizes for Section 8, 15, 21 and 22 because now they uses docker images with precise version tag. This request passes CI and now it is ready to merge! |
Wonderful, thanks! |
This request partially solve #37 by adding tests for the examples.
I do not add tests for the following sections:
2, 3,7, 9, 11 (2nd and 3rd examples), 12, 13 and 14outputs
instead of side-effects.Section 11 (1st example)We expect it should fails butcwltest
cannot test such cases. We should fixcwltest
for known failure testing.interproscan.sh
on episode 19 #48). IMO it is better to use smaller examples that can be included in the repository.Here are some notes for tests.
I skipped checking the checksum and size of the resulted files for section 8, 15, 21 and 22 because they depends on the external compiler and it makes the tests fragile if we check the checksum and size.In this request, the test for section 10 expects that the glob inoutputs
returns files in the deterministic order. I am not sure it is a defined behavior or a system-dependent behavior.