Re: tools and testing
Russel Winder <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2017-04-18 at 20:48 -0700, Bill Deegan wrote: > Would it be possible to mock the dub tool for a unit test? > (Or even for a E2E test?) I had sort of arrived at having to do that anyway to avoid the need for the dub program on the test server. I think we have to assume the Dub tool always does exactly what is says it does and so ignore it for all the tests. If I extract the subprocess call into a separate Python function, that enables mocking. For testing the basic stuff this should be OK. I have created a special case of the unit-threaded package because it needs a special builder for writing suite files. Most of that is already amenable to unit test, but not end-to-end unless dub is available. I will set about putting these tests in place, but given the SCons test infrastructure a full end-to-end system test may have to be left to what happens in the field. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder _______________________________________________ Scons-dev mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/scons-dev
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETwDs1X+Beyaiaer41L3V0s7Np7gFAlj28xoACgkQ1L3V0s7N p7h+cw/9HTuj3mdGQ1QP6+xvUPOYvkj4uQKvqKIkVTShEEwHYGQ01sZcc0FmD4u5 cnQNmGLZzqEM0nUfMOecv7W6zuZWDC1bMiQUli/if+J4DlgCkzSmK3GAFEqw8rIZ uv51hsV7SsnvRAf0fxpKq8khBK/sN4RZeLFbbM8n0gpnpfbuHDULWPnJ0as/tSSP T/3Fo1gMasyLXgdgcnRLutUkRlqXcYHjmvIrO1wU4GB4Wr2Wo0DPwrBRoBMgZb8c /RhjDE/ygxVCzPXGxOe0121fVuzmXsmrzbvIUfxv+2fOeTGQxoBTnWV+sXu7krkW o1r6203Gf3AXqIBiSpF5Z8mrTkxNgGz+SRZqgp8UsHr/SWabu8JzzO7jtEq9MvRG z9jafhoU7auVJ6R5/yttQr0mKmH9vjFWL4Q3IK7oYhyg5n/bRvLMvtvxFPjlqo3z pHTwLT+pknlQZL3DMoBOkRSRBdp7sRCAiyrTBQ0iNnAFbC6Q/Fl5jnuIqeVqKW5r XnRO8Vvdg+Fq8PoMwqYwR036ecn24YDBLsTu8SUC6ucI/XyVEKKNq1YVR3XoShGw eWd+jOukQhAQl2aGIQ7BB4egpSkxpTODdzwUX/zgQGqQPeKntxRp48Gv3CdJESBa jOfDPyeXU7cq1p0gyUltomcDiPVHPEINCktnFCA5u4raYNw5HGI= =NAP3 -----END PGP SIGNATURE-----