Thread Tools Display Modes
08-05-18, 05:39 AM   #1
pcg79
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2018
Posts: 7
Testing addons

Question for you Addon devs. I recently introduced a bug in my addon that completely broke it for any new installs. Not my finest moment. But I missed it because I haven't been doing full end-to-end testing every time I make a change since that's a big pain. It seems it's something I should be doing, though, since I don't have coded tests and I can't really figure out how one would do that for an addon.

I'm wondering what you all do for testing. Do you have in-code tests, if so, how? Do you just use it a bunch to try to catch bugs? Perhaps a list of things to check before a release?
  Reply With Quote
08-05-18, 06:20 AM   #2
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
For me that depends on the changes made and the situation.
For BfA I tested my addons with no other addons running to make sure loading process is correct and tested the "main" functionality. Still a few errors made it to Prepatch and I had to push a few updates.

Normally I dont touch the core of the loading process of my addons. I've created a "common" part that all my addons share. With BfA I touched it for the first time in a long time so I ran way more tests than usual.

That means for small changes and additions I dont run a full test nor many tests. For example I've added "connected realms" to my money broker and pushed the update without deeper tests other than checking on a few realms if the sum seems right.

"Luckily" my addons are not that popular so that most errors are never reported before I run into them myself
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
08-05-18, 02:07 PM   #3
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Like Rilgamon said, it totally depends on what (and how much) was changed. I've pushed bugs plenty of times. It's hard to catch all bugs that could happen under all manner of circumstances. That is why large projects (such as WoW) have whole teams for QC and play-testing.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Testing addons

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off