Closed dnil closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 84.56%. Comparing base (
a7485ad
) to head (a294c9a
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I have changed my mind: BASIC and assembler were a lot cleaner.
You would think that the test discovery would work the same way if you run it on a parent directory or grandparent directory as well... ðŸ«
You would also think that tests, with functions named test, in a super-folder named tests, given explicitly to pytest when starting the test (and that run if you give the subfolder name) would run by default. No. You have to name every file in the whole directory tree something that begins or ends with "test". Was this developed by Microsoft?
Anyway.
No. You have to name every file in the whole directory tree something that begins or ends with "test".
I knew actually. That's why in general when I'm developing I call the single test specifically introducing an error so I know if it runs or not. It fooled me already 😆
Hehe, I see. Calling the single test or subdirectories works even if running on the top level dir doesn't. I do already locally just to save time. You mean you actually run the whole test barrage with an error once for every new test?
One might also take into consideration the oaf-ness of the guy who sees a huuuuge tree with files named "test_*.py" and decides it would be a good idea to introduce the first one that doesn't. 😆
Hehe, I see. Calling the single test or subdirectories works even if running on the top level dir doesn't. I do already locally just to save time. You mean you actually run the whole test barrage with an error once for every new test?
No like, I create the test and inside I write something like: assert "BLABLA" == "BLEBLE" and see if I get the error. Just once by calling my specific test.
Hehe, I see. Calling the single test or subdirectories works even if running on the top level dir doesn't. I do already locally just to save time. You mean you actually run the whole test barrage with an error once for every new test?
No like, I create the test and inside I write something like: asset "BLABLA" == "BLEBLE" and see if I get the error. Just once
Ah on GitHub actions? Gotcha, good practice.
Ah on GitHub actions? Gotcha, good practice.
no, locally
Ah on GitHub actions? Gotcha, good practice.
no, locally
But that takes like 40 mins?! Well, I can run local parallel as well, but still a few mins.
But that takes like 40 mins?!
Nope, just my test
But that takes like 40 mins?!
Nope, just my test
But I think I also run all tests once per PR. Same time as I develop somewhere else. Locally I mean. Or if I'm on servers I run tests on all the servers dir
But that takes like 40 mins?!
Nope, just my test
Both
pytest tests/server/blueprints/omics_variants/omics_variants.py::test_filter_export_omics_variants
and
pytest tests/server/blueprints/omics_variants
work just fine... 🫠Just not only
pytest
But that takes like 40 mins?!
Nope, just my test
But I think I also run all tests once per PR. Same time as I develop somewhere else. Locally I mean. Or if I'm on servers I run tests on all the servers dir
Sure, same, but I would not notice the omission of one new test there without like as you suggested an expected assert error in there! Anyway, not the nicest mechanism, though one could kind of infer the idea from looking at a hundred examples. >XD
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
This PR adds a functionality or fixes a bug.
Testing on cg-vm1 server (Clinical Genomics Stockholm)
**Prepare for testing** 1. Make sure the PR is pushed and available on [Docker Hub](https://hub.docker.com/repository/docker/clinicalgenomics/scout-server-stage) 1. Fist book your testing time using the Pax software available at [https://pax.scilifelab.se/](https://pax.scilifelab.se). The resource you are going to call dibs on is `scout-stage` and the server is `cg-vm1`. 1. `sshTesting on hasta server (Clinical Genomics Stockholm)
**Prepare for testing** 1. `sshHow to test:
Expected outcome: The functionality should be working Take a screenshot and attach or copy/paste the output.
Review: