Difference between revisions of "Writing Perl Tests"

From SambaWiki
(add page writing perl tests)
(No difference)

Latest revision as of 05:35, 2 August 2017

Writing Perl Tests

Don't write new perl tests

There are Perl tests in Samba for:

* smbclient_tarmode

We do not wish to add any more Perl tests outside the scope of PIDL, if writing a new test please write it in Python

Use Test::More

Samba uses Subunit, and by using tap2subunit we can convert the TAP stream from Test::More into subunit

Plan the test suite using planperltestsuite

New tests using Test::More should be planned in tests.py with planperltestsuite()