[Scons-users] 2615 Issue
Dirk Bächle
tshortik at gmx.de
Mon Feb 29 16:22:46 EST 2016
Hi Adarsh,
On 29.02.2016 17:41, Adarsh Sanjeev wrote:
> Hi,
>
> I'm still working on this issue, and I have gone through the source code for CacheDirTests.py. I do not understand why
> test_CachePush replaces the function with its own self.push for the test, if it is testing it.
>
> As per what you said, I do not understand why two cacheDirs have to be made to test for read only. Isn't it enough to push a file to
> a read only cache? Furthermore, is a read only cache the only case that I should handle? What about if os.makedir fails for the cache?
>
> Also, is there any documentation specifically on writing tests for scons, other that the unittest documentation?
>
the DeveloperGuide at https://bitbucket.org/scons/scons/wiki/DeveloperGuide/Introduction points directly to our "Testing Howto" at
https://bitbucket.org/scons/scons/wiki/DeveloperGuide/TestingMethodology
Does that help?
Best regards,
Dirk
More information about the Scons-users
mailing list