Test Restructuring #374
Replies: 4 comments 1 reply
-
These ideas sound good to me. I am not always a fan of TDD, but it can be very useful. Certainly adding a test case that fails with current code and passes with new code in a PR, probing that a specific problem is indeed fixed, is very useful. It prevents regressions from happening in the future. |
Beta Was this translation helpful? Give feedback.
-
@niccokunzmann I have some spare time, can I restructure the test according to what you've outlined? |
Beta Was this translation helpful? Give feedback.
-
Yes, let's keep it a conversation!
|
Beta Was this translation helpful? Give feedback.
-
I would say one pr for removing duplicates or better one for each duplicate.
It is good to test documentation and that examples work.
The objective of this is for me to
- get to know the tests
- not reduce what they test in code AND referenced understanding
- make one good example to advertise
- create a how to test the code documentation
What is nice for me is to split them up so that one test has only one assertion, using pytest fixtures and functions and alike. But that might be interesting to approach.
Test that seem to check if the parser works
Could be in a parsing.py file. Important for me is that the references to issues do not get removed. So, yes, I like it. Let's make small PRs where possible.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I had a look at the tests and I would like to discuss some restructuring - just discuss it for now - before I make changes.
If you look at
https://github.com/niccokunzmann/python-recurring-ical-events/tree/master/test
you see that
And, allowing parametrization, I run over 600 test cases both testing pytz and zoneinfo in the same tests - this is something for the transition.
So, I wonder what your input would be about restructuring the tests going forward. I am a fan of TDD and I will have a look but I also do not know how much time I have when...
My intention is to let you know about my wishes for icalendar and what I can offer, related to #360.
Beta Was this translation helpful? Give feedback.
All reactions