Merge lp:~andrea-crotti-0/mailman/test_doc into lp:mailman
Proposed by
Andrea Crotti
Status: | Rejected |
---|---|
Rejected by: | Barry Warsaw |
Proposed branch: | lp:~andrea-crotti-0/mailman/test_doc |
Merge into: | lp:mailman |
Diff against target: |
97 lines (+82/-0) 2 files modified
README.rst (+1/-0) src/mailman/docs/CONTRIBUTING.rst (+81/-0) |
To merge this branch: | bzr merge lp:~andrea-crotti-0/mailman/test_doc |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Barry Warsaw | Needs Fixing | ||
Review via email: mp+98295@code.launchpad.net |
Description of the change
Added some doc from the Testing instructions in the e-mail.
This is far from perfect but I don't know much about it yet, so please give me some feedback about how it should be structured and what I should add..
To post a comment you must log in.
Unmerged revisions
- 7126. By Andrea Crotti
-
- refactor the testing information
- add CONTRIBUTING to the TOC - 7125. By Andrea Crotti
-
add first sample of documentation for testing
Thanks for taking a shot at this! Here are some comments:
Notice that there is a template.py file in the top level directory. This is a great way to start any new .py file (except __init__.py files which are typically empty). So if you're adding a new test_foo.py file, start with the template.
You might describe how to run a single test, e.g.
$ bin/test -t test_simple_wrap
will run just that one test, while
$ bin/test -t test_headers
will run all the tests in the test_headers.py file.
$ bin/test -t users.rst
will run that doctest. This isn't really Mailman specific; it's all zope.testing.
Also perhaps describe the -vv option, which I use all the time.
From there, I'd say you could describe some some about how the project is managed, e.g.
- Branches and merge proposals are preferred over patches (though patches may be accepted) merge-proposal to be attached to a bug since then we can milestone it and include a note in the NEWS.rst file.
- I prefer a branch/
- Please include a test in every branch. Documentation is nice too, as is a NEWS.rst file entry (but the latter is optional, especially if there is a bug report).
Please make sure to run the full test suite to make sure your branch doesn't regress.
That's probably it for now. This is a great start and could eventually be expanded to explain other aspects for contributors. But we can wait on that. :)