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. |
1 reply
|
This infrastructure has been developed and integrated into Moving on ... |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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-casesand adjust theMakefileaccordingly. 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/unitsub-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:
Makefileupdates.pytestexerciser to actually run these unit-tests and exercise thel3_dump.pyon 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
Makefilechanges 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
Makefilere-factoring, will be broken-up into smaller pieces for integration to the repo.All reactions