Replies: 2 comments 1 reply
-
Yes, some automated regression testing like you propose is highly desirable. I am supportive! I don't know much about what frameworks are available -- at Undo it's mostly home-grown although we are slowly moving to pytest. But any testing is better than no testing! I've seen people hook up travis CI to github -- that or some alternative would be cool, but I don't know how much work that would be. |
Beta Was this translation helpful? Give feedback.
1 reply
-
This infrastructure has been developed and integrated into
Moving on ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
HI, @gregthelaw -- While working on improving the capability of
l3_dump.py
, I discovered a few limitations and opened issue #12 .I want to suggest a few improvements, based on my explorations to resolve this issue:
tests/unit
, under which unit-test sources will live.test-use-cases/
to be simplyuse-cases
and adjust theMakefile
accordingly. I see the programs in this set really to be example use-case programs, so naming themtest-use-cases/
is a bit misleading. (And will be confusing with proposedtests/unit
sub-dir for unit-tests. I should have foreseen this name-clash earlier when I created thetest-use-cases/
sub-dir.)I did some evaluation in my head on this proposal, and would like to run it by you before charging down with a PR to bring-in unit-tests sources & files:
Pros:
Cons:
Makefile
updates.pytest
exerciser to actually run these unit-tests and exercise thel3_dump.py
on generated L3 log-dumps and to verify that the stuff works as designed. (I don't have the pytest prototyped now, but that would be the way to go if we went down this path.)Prototype
Here is what I have by way of a prototype of this unit-testing dev effort:
Right now, it's a very simple program generating 4 log-entries. I used this program (and this unit-test exercise) to flesh-out and log the bugs reported in issue #12 .
Associated
Makefile
changes can be seen in my dev-branch which I just pushed to Github. I have a draft PR #13, which shows you an idea how the files will change.Let's discuss first if this approach seems reasonable to you. If yes, this work, which involves
Makefile
re-factoring, will be broken-up into smaller pieces for integration to the repo.Beta Was this translation helpful? Give feedback.
All reactions