[Tutor] Testing a dice roller project
dn
PythonList at DancesWithMice.info
Wed Jun 7 18:55:46 EDT 2023
On 08/06/2023 07.54, trent shipley wrote:
> I had only done programming for:
>
> - class assignments
> - for scratching little itches at work
> - occasional very small work assignments
> - (and a respectable amount of SQL at work, if you count that),
Well done!
> but for the first time I have finished my first draft of a self-motivated
> project. It is only the core logic of a little dice rolling utility
> motivated by not finding The Perfect RPG Dice Roller, but I am inordinately
> proud of it. I still need to add a little core functionality, do the
> drudgery of testing, and add a command line interface and more testing, an
> RPG GUI and its testing, and a scientific GUI and testing for it.
but ?
drudgery - making sure that it actually works - before inviting others
to use it and form your reputation?
> 1. What options are available for unit testing Python code? What are the
> pros and cons?
unittest - in the PSL
pytest - preference (IMHO)
hypothesis - advanced but powerful (saves 'drudgery', yields 'surprises')
> 2. Where can I find style guides and pointers for Python documentation?
PEP-008
https://documentation.divio.com/
> 3. When should I put it on my GitHub account?
Never - unless you want MSFT to own it, and use it for their own
purposes without your active permission and without attribution, respect
for copyright, etc.
Use GitLab or one of the other alternatives. Use other media to 'advertise'.
> 4. I *need* feedback and code review. How do I solicit (or shop and pay
> for) feedback?
Do more homework to see that others (including several Python (and
other) books) have tackled such simulations.
Join your local PUG (Python Users' Group) - many of which are now
meeting in virtual/hybrid mode and thus don't need to be more local than
a time-zone 'close by'.
> 5. Is there an active list where it would be more appropriate to ask the
> many questions I have since they are not absolute beginner questions?
> (Lite intermediate_tutor at python.org.)
[No. My understanding is that] this list does not limit the 'level' of
question. Indeed tutors have been known to ask each-other 'advanced
level' questions here!
--
Regards,
=dn
More information about the Tutor
mailing list