Active
Project:
lm_paypal
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2010 at 06:29 UTC
Updated:
23 May 2010 at 21:36 UTC
913 passes, 161 fails, and 87 exceptions:
- Donations: 382 passes, 0 fails, and 0 exceptions
- Paid Adverts: basics and API: 194 passes, 46 fails, and 30 exceptions
- Paid Adverts: general use case: 107 passes, 82 fails, and 39 exceptions
- Subscriptions: 129 passes, 33 fails, and 18 exceptions
- Base: basic module functionality and API: 82 passes, 0 fails, and 0 exceptions
- Base: IPN validation: 19 passes, 0 fails, and 0 exceptions
Comments
Comment #1
lyricnz commentedStarting with "Paid Adverts: basics and API" which current gets 194 passes, 46 fails, and 30 exceptions.
Many of these are caused by notices at lm_paypal/lm_paypal_paid_adverts/lm_paypal_paid_adverts.admin.inc:44
replaced with
With that change, the tests now run 194 passes, 4 fails, and 2 exceptions
Comment #2
lyricnz commentedFixed out-of-date test text, and defined $max_length dropped during move to sub-directory.
Paid Adverts: basics and API
196 passes, 0 fails, and 0 exceptions
Next:
Paid Adverts: general use case.
107 passes, 60 fails, and 17 exceptions
Comment #3
lyricnz commentedAnother instance of the wrong text being looked for, but most of the remaining issues are in subscriptions system.
Paid Adverts: general use case.
111 passes, 62 fails, and 15 exceptions
Comment #4
kerauno commentedGood job on finding these!
Comment #5
lyricnz commentedHi kerauno. I'm hoping you can fix the subscriptions issues - I don't really follow what changed. Last time I looked, some of the problems looked to be in the caching.
Comment #6
kerauno commentedOk. I'm setting up another virtual to allow me to run the simpletests cleanly.
Comment #7
kerauno commentedJust did a commit. Should be available tomorrow 5/20/2010
We need to review the test scripts and see if the fails are still valid tests.
916 passes, 17 fails, and 0 exceptions
- Donations: 382 passes, 0 fails, and 0 exceptions
- Paid Adverts: basics and API: 196 passes, 0 fails, and 0 exceptions
- Paid Adverts: general use case: 107 passes, 13 fails, and 0 exceptions
- Subscriptions: 130 passes, 4 fails, and 0 exceptions
- Base: basic module functionality and API: 82 passes, 0 fails, and 0 exceptions
- Base: IPN validation: 19 passes, 0 fails, and 0 exceptions
Comment #8
kerauno commentedAdditional fixes and updated simpletest scripts.
Only 8 fails left. 7 are watchdog warnings related to the "signup" processor state which is not currently used and the last fail is related to a role type subscription doing admin edit.
1102 passes, 8 fails, and 0 exceptions
- Donations: 444 passes, 0 fails, and 0 exceptions
- Paid Adverts: basics and API: 245 passes, 0 fails, and 0 exceptions
- Paid Adverts: general use case: 142 passes, 5 fails, and 0 exceptions
- Subscriptions: 160 passes, 3 fails, and 0 exceptions
- Base: basic module functionality and API: 92 passes, 0 fails, and 0 exceptions
- Base: IPN validation: 19 passes, 0 fails, and 0 exceptions
Comment #9
lyricnz commentedGood work.
It appears that we have some environmental differences that are causing me to get different results to you. In particular, I'm running error_reporting=E_ALL, which warns about use of undefined variables, undefined array indexes etc. Right now, for example, I get:
Paid Adverts: general use case
115 passes, 43 fails, and 13 exceptions
I'll see if I can fix a few of those now.
Comment #10
kerauno commentedhmmmm..... i've got it set to the following. I'll remove the E_NOTICE and see what the results are.
error_reporting = E_ALL & ~E_NOTICE
Yes. Additional fails with ~E_NOTICE removed.
-------------
1102 passes, 63 fails, and 35 exceptions
- Donations: 444 passes, 0 fails, and 0 exceptions
- Paid Adverts: basics and API: 245 passes, 0 fails, and 0 exceptions
- Paid Adverts: general use case: 142 passes, 38 fails, and 13 exceptions
- Subscriptions: 160 passes, 25 fails, and 22 exceptions
- Base: basic module functionality and API: 92 passes, 0 fails, and 0 exceptions
- Base: IPN validation: 19 passes, 0 fails, and 0 exceptions
------------
Let me know if you need my help.
Comment #11
lyricnz commentedFixed a few more, got
Paid Adverts: general use case
118 passes, 11 fails, and 1 exception
Ugh, this is horrible horrible code, isn't it?
Comment #12
kerauno commentedLOL. Unfortunately sometimes well written code becomes convulated as different developers apply fixes and enhancements. I've seen it for many years and I can't cast any stones since I'm not perfect either and have taken the easy way out (not often though). To me the best coding style is to create reusable objects. Then keep procedures small and clean so they are easy to read.
Let me know when you want me to jump in.
Comment #13
lyricnz commentedI'm done for the moment, I only get time for this stuff over the weekends.