Conversation
|
This is just adding tests, not running them, right? |
|
Yeah, this doesn't run them through TravisCI. @keneanung at some point will hook them up I imagine, I'll worry about making them and running them locally. |
|
This looks like a very nice tool! There are some niggles right now:
|
|
Yeah, you have to map the executable. I ran into the same issue with screenshot comparison mode - I made a little script to prune identical images and ended up with this set of images: I think a solution to this would be if we could tell squish to look for an image anywhere within an image - instead of just a static mask that blocks out other parts for comparison. That would solve our problem. I haven't found out how yet though nor written to their mailing list about it. |
|
Oh yeah, though one obvious solution is to have a profile that doesn't connect to a MUD - just putting in example.com:23. Then we should have a static output - so we'd solve the problem in this case but not necessarily for other cases. |
|
Does this allow to check for certain colours in the text? |
|
Vadim wrote:
I just use |
|
@keneanung via screenshot comparison |
|
I need to work on this branch while also having access to the improvements done in #955 @keneanung anything you'd like me to do on this branch? I'll be swapping out Avalon.de with a blank profile that the BDD creates as a setup hook so we can avoid the connection timing issues - just used that profile as a starting point because it was there already. |
|
Nothing else right now. We may need to decide about BDD or scripted tests and some other guidelines when we have a little more experience with the tool, but I don't think it's something we can decide right now. |
|
Okay, tick please |
keneanung
left a comment
There was a problem hiding this comment.
I wanted to wait for the new profile code before the tick, but I guess you want to add it to the coroutine tests.
|
Ahh sure, my bad. I will add it in first! |
Still has a few kinks - need to figure out how to create Qt objects - but it does the job fine for what's needed right now.
|
@keneanung added. Haven't migrated other tests to BDD yet to make use of the Squish profile - that'll come later. I think we should go BDD because it's a heck of a lot easier to understand tests written in English than in code for test newbies, and I'd like to get any interested people in contributring - so the bar's gotta be pretty damn low. |
|
I'll leave porting the other tests to BDD later, want to get started on testing #955. |
keneanung
left a comment
There was a problem hiding this comment.
Confirming my approval. Check it in!







froglogic gave us an open-source license to Squish for Qt, a pretty nice GUI automation tool and as far as I see the best one out there for Qt apps.
This is an initial set of tests that pretty much test that you can open a profile and create a basic profile. We should strive to get all GUI aspects of using Mudlet into this so we can safely tweak things and not be afraid of breaking something. A video demonstration of these tests can be found here.
The license for Squish per-user, so if you'd like to work on these tests (please do!), you'll need to sign up for an evaluation license to get immediate access to the tool - and I can get a more permanent license after.
Tagging @Mudlet/infrastructure for review.