Re: [RFC/WIP/PATCH v2] gitweb: add test suite with Test::WWW::Mechanize::CGI
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jun 16, 2008, 20:15 UTC
- Message-ID
- <200806162215.05283.jnareb@gmail.com>
- In-Reply-To
- <48562DFD.4090108@gmail.com>
Lea Wiemann wrote:
Show 6 quoted lines
> Jakub Narebski wrote: >> Lea Wiemann wrote: >> >> How would you ensure cold cache? > > Use a unique key prefix, like "gw:test-$PID:<key>"
I was thinking rather about dropping cache somewhat.
Show 6 quoted lines
>>> 3. Get all those URL's again *with* caching (from a warm cache), and >>> assert that the output is identical. >> >> it might have "cached output" somewhere in the output. > > We can make that deactivatable so that the output is actually identical.
Good idea. Or we can just do diff and check the difference.
BTW. another thing worth considering: generating "Generating page..." or something like that like kernel.org's gitweb does when it has to regenerate cache. Nice feature, that is.
-- Jakub Narebski Poland