[rfc][icedtea-web] ResourceTracker Download Performance Test
Omair Majid
omajid at redhat.com
Tue Sep 2 19:32:10 UTC 2014
Hi,
* Jie Kang <jkang at redhat.com> [2014-09-02 14:25]:
> I have improved the test by making it use a temporary cache. However I
> don't think downloading from a github repo is the best idea. Does
> anyone have any suggestions?
What capabilities do you need from the download URL? If you just need an
alternative to github, you can also use a personal repo at
icedtea.classpath.org. Let me know if you decide to use that and I can
help you set it up.
> I think having tests for the download
> functionality is quite important.
I agree. Tests to know that thing is working and working fast are great
to have.
However, these should be moved to integration tests and run using the
web server that's part of the test suite. Here are my reasons for this:
- The URL is an external resource; unit tests should not require network
connectivity.
- Since it's a performance test, the results need to be examined by a human to
figure out if they are passing. Running it as a unit test (on every
build) doesn't really help us.
- For anything more complex than a simple http GET, running the test
under a server that you can programmatically control to do unexpected
things or handle corner cases would be nice to have. And that server
is available for integration tests.
Thanks,
Omair
--
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
More information about the distro-pkg-dev
mailing list