Guest User

Untitled

a guest
Jul 17th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. t/Shop/ShipDriver/USPSInternational.t ..
  2. 1..40
  3. ok 1 - definition takes an exception to not giving it a session variable isa WebGUI::Error::InvalidParam
  4. ok 2 - ... checking error message
  5. ok 3 - The reference isa ARRAY
  6. ok 4 - The object isa WebGUI::Shop::ShipDriver::USPSInternational
  7. ok 5 - The object isa WebGUI::Shop::ShipDriver
  8. ok 6 - getName returns the human readable name of this driver
  9. ok 7 - delete deleted the object
  10. ok 8 - calculate throws an exception when no userId isa WebGUI::Error::InvalidParam
  11. ok 9 - ... checking error message
  12. ok 10 - _getShippableUnits: empty cart
  13. ok 11 - _getShippableUnits: one loose item in the cart
  14. ok 12 - _getShippableUnits: two loose items in the cart
  15. ok 13 - _getShippableUnits: two loose items, and 1 ships separately item in the cart
  16. ok 14 - _getShippableUnits: two loose items, and 2 ships separately item in the cart, regarless of quantity for the new item
  17. ok 15 - _getShippableUnits: two loose items, and 2 ships separately item in the cart, and another loose item sorted by zipcode
  18. ok 16 - _getShippableUnits: only 1 ships separately item in the cart
  19. ok 17 - buildXML: checking userId is an attribute of the IntlRateRequest tag
  20. ok 18 - buildXML: checking ID is an attribute of the Package tag
  21. ok 19 - buildXML: 1 item in cart
  22. ok 20 - ... and tag order
  23. ok 21 # skip No userId for testing
  24. ok 22 # skip No userId for testing
  25. ok 23 - _calculateFromXML calculates shipping cost correctly for 1 item in the cart
  26. ok 24 - Validate XML structure and content for 2 items in the cart
  27. ok 25 # skip No userId for testing
  28. ok 26 # skip No userId for testing
  29. ok 27 - _calculateFromXML calculates shipping cost correctly for 2 items in the cart
  30. ok 28 - _calculateFromXML calculates shipping cost correctly for 2 items in the cart, with quantity of 2
  31. ok 29 - Validate XML structure and content for 3 items in the cart, 3 shippable items
  32. ok 30 # skip No userId for testing
  33. ok 31 # skip No userId for testing
  34. ok 32 - buildXML: minimum weight
  35. ok 33 # skip No userId for testing
  36. ok 34 # skip No userId for testing
  37. ok 35 # skip No userId for testing
  38. ok 36 # skip No userId for testing
  39. ok 37 # skip No userId for testing
  40. ok 38 - _calculateFromXML throws an exception for illegal package ids isa WebGUI::Error::Shop::RemoteShippingRate
  41. ok 39 - ... checking error message
  42. ok 40 - calculate throws an exception when a bad userId is used isa WebGUI::Error::Shop::RemoteShippingRate
  43. ok 41 - calculate won't calculate for domestic countries isa WebGUI::Error::InvalidParam
  44. Dubious, test returned 255 (wstat 65280, 0xff00)
  45. All 40 subtests passed
  46. (less 11 skipped subtests: 29 okay)
  47. t/Spectre/Workflow.t ...................
  48. 1..20
  49. ok 1 - can call getJsonStatus for all sites
  50. ok 2 - can call getJsonStatus for localhost
  51. ok 3 - workflow/getJsonStatus for all sites returns a proper JSON data structure
  52. ok 4 - workflow/getJsonStatus for all sites returns a JSON structure parseable into a Perl hashref isa HASH
  53. ok 5 - localhost exists in all sites result structure
  54. ok 6 - workflow/getJsonStatus for one site returns a proper JSON data structure
  55. ok 7 - workflow/getJsonStatus for one site returns a JSON structure parseable into a Perl hashref isa HASH
  56. ok 8 - Suspended exists for localhost in all sites structure # TODO tests to make later.
  57. ok 9 - Suspended is an arrayref in the localhost hash in all sites structure isa ARRAY # TODO tests to make later.
  58. ok 10 - Suspended exists for localhost in one site structure # TODO tests to make later.
  59. ok 11 - Suspended is an arrayref in the localhost hash in one site structure isa ARRAY # TODO tests to make later.
  60. ok 12 - Waiting exists for localhost in all sites structure # TODO tests to make later.
  61. ok 13 - Waiting is an arrayref in the localhost hash in all sites structure isa ARRAY # TODO tests to make later.
  62. ok 14 - Waiting exists for localhost in one site structure # TODO tests to make later.
  63. ok 15 - Waiting is an arrayref in the localhost hash in one site structure isa ARRAY # TODO tests to make later.
  64. ok 16 - Running exists for localhost in all sites structure # TODO tests to make later.
  65. ok 17 - Running is an arrayref in the localhost hash in all sites structure isa ARRAY # TODO tests to make later.
  66. ok 18 - Running exists for localhost in one site structure # TODO tests to make later.
  67. ok 19 - Running is an arrayref in the localhost hash in one site structure isa ARRAY # TODO tests to make later.
  68. Dubious, test returned 255 (wstat 65280, 0xff00)
  69. Failed 1/20 subtests
  70. (12 TODO tests unexpectedly succeeded)
  71.  
  72. Test Summary Report
  73. -------------------
  74. t/Shop/ShipDriver/USPSInternational.t (Wstat: 65280 Tests: 41 Failed: 1)
  75. Failed test: 41
  76. Non-zero exit status: 255
  77. Parse errors: Bad plan. You planned 40 tests but ran 41.
  78. t/Spectre/Workflow.t (Wstat: 65280 Tests: 19 Failed: 0)
  79. TODO passed: 8-19
  80. Non-zero exit status: 255
  81. Parse errors: Bad plan. You planned 20 tests but ran 19.
  82. Files=2, Tests=60, 14 wallclock secs ( 0.03 usr 0.06 sys + 2.68 cusr 3.61 csys = 6.38 CPU)
  83. Result: FAIL
Add Comment
Please, Sign In to add comment