Replies: 9 comments 7 replies
-
I've been thinking about this for awhile. As the code base gets bigger and bigger it's starting to get difficult to keep it all in my head at once. In the back of my head as I make more changes and additions, I'm thinking I hope this doesn't break something existing. I must admit, alot of it could have been avoided if I had taken care in the beginning to carefully craft classes with better defined roles. Instead I just kept bolting things on and as long as they worked I went with it. I've picked up two books on the subject, "Python Testing with pytest" by Brian Okken and "Crafting Test Driven Software" by Alessandro Molina. Of course haven't gotten around to reading them. The two most neglected things in software are tests and documentation. I'd be very open to anything you'd want to tackle in this area. |
Beta Was this translation helpful? Give feedback.
-
That's okay. My brain auto-corrected and I didn't notice.
…On Thu, Oct 3, 2024, 6:07 AM driechers ***@***.***> wrote:
I got some stuff working last night. Hopefully making a pr by this
weekend. I also realized i probably heard you on linux in the ham shack and
not qso today haha got a little mixed up.
—
Reply to this email directly, view it on GitHub
<#162 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWVLRNL6GV34K4DWRLHDKDZZU6SHAVCNFSM6AAAAABPIRQZOOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOBTGE4TGNY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Testing going good. I have a good start with pytestqt. I'm filling out test data for every contest now. I am finding bugs and fixing along the way! |
Beta Was this translation helpful? Give feedback.
-
Excellent, I'll be interested to see how it works. |
Beta Was this translation helpful? Give feedback.
-
Opened up #165 I was trying to fix all the bugs I was finding but was struggling with a couple and figured I’d share what I have. Working during kids nap times so time is fairly limited. |
Beta Was this translation helpful? Give feedback.
-
Looks good. I merged it. Thanks for the PR! |
Beta Was this translation helpful? Give feedback.
-
If I'm not mistaken... Most of the errors you might be seeing stem from there is no Station information set in the beginning of the test. |
Beta Was this translation helpful? Give feedback.
-
I've added the info to the test and it looks like it's passing now. =============================================================== test session starts ===============================================================
platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0
PyQt6 6.7.1 -- Qt runtime 6.7.3 -- Qt compiled 6.7.1
rootdir: /home/mbridak/Nextcloud/dev/not1mm
configfile: pyproject.toml
plugins: qt-4.4.0
collected 1 item
test/contests.py . [100%]
=============================================================== 1 passed in 22.10s ================================================================
(venv) mbridak@fredo:~/Nextcloud/dev/not1mm$ |
Beta Was this translation helpful? Give feedback.
-
No worries. This is a zero stress/obligation environment.
…On Fri, Oct 11, 2024, 9:58 AM driechers ***@***.***> wrote:
Getting this working headlessly is proving harder than I expected. Still
looking into it. Just slow cause of limited time
—
Reply to this email directly, view it on GitHub
<#162 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALWVLRJT546DCJX3VSDRTLDZ277TTAVCNFSM6AAAAABPIRQZOOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAOJRG43TEOI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I thought it would be helpful for me to contribute some testing to not1mm. It would be really cool to see some sort of ci pipeline type thing built in so pull requests need to pass existing unit tests. I think it would also be cool to add some QT gui tests. My thought is just start with a few simple usage tests. ie start a contest generate a log, run a few qsos. I know QT has some ability to simulate gui events and I would expect this to be tied into python bindings. Another thought i've had is to get N1MM running in wine and having not1mm and n1mm networked together in some sort of CI test. I understand from your interview in QSO today that keeping these compatible is no easy task but I wonder if a few automated tests in a ci pipleine could make that more realistic? What do you think? I'm eager to start playing with this code. Anything in this approach you would change or prioritize?
Beta Was this translation helpful? Give feedback.
All reactions