Closed gridhead closed 10 months ago
One of the previous test runs actually connected to GitLab.com to make testing HTTP API requests and used a lot of networking and computing resources while taking as long 3 minutes and 11 seconds to complete. As external services are used, the reliability of the testcases also depend on the services' health, network conditions etc.
With the use of VCR.py, only those HTTP API requests are conveyed all the way up to GitLab.com that are required to test the functionality of cloning and transferring the repository assets. The responses to the majority of HTTP API requests are emulated in this test run and that brings down the time to as low as 1 minute and 14 seconds.
That is approximately 61.25% time saved on test runs with significant improvement on the reliability of those!
Thanks for the review, @samyak-jn!
Add testing support using VCR.py
Fixes #42