1. #1
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,810
    Vote Rating
    133
    mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold

      2  

    Default Component Maker Test Pack

    Component Maker Test Pack


    I just created a new GitHub repo called "Component Maker Test Pack" which contains 10 great sanity tests for your ExtJS or Sencha Touch component. Powered by Siesta, this suite will help you assert that:
    1. Your namespace is created (build was succesful) and that your component has the expected alias. Checks for global variable leaks are also made.
    2. Your component can be loaded on demand with Ext.Loader (using ext-debug.js)
    3. Your component doesn't create any global Ext JS overrides
    4. It passes basic JsHint rules (no syntax errors, trailing commas, debugger; statements etc)
    5. It does not use global style rules ('.x-panel' etc)
    6. It can be sub-classed
    7. It does not leak any additional components or dom elements
    8. It doesn't override any private Ext JS methods in your component superclasses
    9. It can be created, destroyed with and without being rendered first
    10. It passes a basic monkey test (random interactions with it), should not throw any exceptions.



    https://github.com/matsbryntse/Compo...aker-test-pack

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    61
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    Very cool, can't wait to try it out on my custom components to see how they stack up! Thanks for sharing!

  3. #3
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Clever! Thanks for sharing!


    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager:
    sheryl@sencha.com

  4. #4
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,810
    Vote Rating
    133
    mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold

      0  

    Default


    Thanks guys, if you can think of more simple tests to catch low hanging annoying fruits - let me know

  5. #5
    Sencha Premium Member dawesi's Avatar
    Join Date
    Mar 2007
    Location
    Melbourne, Australia (aka GMT+10)
    Posts
    1,083
    Vote Rating
    44
    dawesi has a spectacular aura about dawesi has a spectacular aura about

      0  

    Default


    awesome.... super awesome

    should add a check to make sure that the Ext namespace isn't being used by extensions also. (aka Ext.ux is reserved for offical extensions, so you need to namespace properly)
    Teahouse Training Company
    Official Certified Sencha Trainer

    Australia / New Zealand / Singapore / Hong Kong & APAC



    SenchaWorld.com - Sencha webinars, videos, etc
    SenchaForge.org - (coming soon)
    TeahouseHQ.com - Sencha ecosystem training portal

    Code Validation : JSLint | JSONLint | JSONPLint

  6. #6
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,810
    Vote Rating
    133
    mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold mankz is a splendid one to behold

      0  

    Default


    Good point about Ext.ux, will update the pack shortly with more goodies!

Thread Participants: 3