1. #1
    Sencha User
    Join Date
    Aug 2009
    Location
    Amsterdam, NY
    Posts
    38
    Vote Rating
    0
    Scott Murawski is on a distinguished road

      0  

    Question ExtJS Jasmine unit test reporter?

    ExtJS Jasmine unit test reporter?


    Just wondering if anyone has or is working on a jasmine reporter implemented in ExtJS?

    I would imagine it would be similar to: http://www.sencha.com/forum/showthre...implementation. That uses YUI testing framework though.

  2. #2
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    9
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    Nothing internally, though we use Jasmine for all of our unit testing. We use a (slightly) customized version of the normal reporter, which is more than adequate for us at the moment.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User
    Join Date
    May 2007
    Location
    Erlangen, Germany
    Posts
    8
    Vote Rating
    0
    alexis is on a distinguished road

      0  

    Default


    Hi Scott,

    maybe this will help you.

    I have build a jasmine reporter to include unit tests into applications as a Panel (Arapi.unittest.JasminePanel).

    PHP Code:
    // Be sure that jasmine.js (http://pivotal.github.com/jasmine) 
    // is included in your application
    var uTestPanel Ext.create("Arapi.unittest.JasminePanel", {
        
    jasmineCfg: {
            
    fn: function (){
                var 
    me this;
                
    describe("Suite 1", function(){
                    
    it("that's ok", function(){
                        
    expect(== 1).toBeTruthy();
                    });
                    
    it("that's not ok", function(){
                        
    expect(!= 1).toBeTruthy();
                    });
                });
            },
            
    scopethis
        
    }
    });

    // myContainer.add(uTestPanel);

    // Run test with output into tree of jasmine panel
    uTestPanel.run(); 
    The result output of unit tests will be shown as an Ext JS Tree Panel.

    Here is an example.

    The API documentation you can find here.

    Download Arapi.unittest.JasminePanel here
    Ext JS 4 Advanced Application Architecture => see Arapi.app.Application and Arapi.app.Controller
    (Extendable Controllers, Neutral Getters and Extended REFS for complex Ext JS Applications)

    Tutorial Ext JS 4 Advanced Application Architecture => see http://alexisdorn.de/arapi-ext/index.php (german)

    Ext JS 4 Unit Test => see Arapi.unittest.JasminePanel

    Arapi Ext Extensions Arapi Ext (german)

    My Website => Alexis Dorn

  4. #4
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    2,804
    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


    Scott, interested in trying out our Siesta tool? Info on our site

  5. #5
    Sencha User
    Join Date
    Aug 2009
    Location
    Amsterdam, NY
    Posts
    38
    Vote Rating
    0
    Scott Murawski is on a distinguished road

      0  

    Default


    Thanks alexis. I did check it out but the API docs didn't load for me. The trick of course is mankz's Siesta tool looks super, so I'll go with that!

Similar Threads

  1. ExtJS Unit Testing Experiment
    By arthurakay in forum Community Discussion
    Replies: 32
    Last Post: 24 Feb 2012, 7:04 AM
  2. Extjs 3.2.X Unit Testing and Ext.test.session implementation
    By yhwh in forum Community Discussion
    Replies: 43
    Last Post: 30 Aug 2010, 4:37 AM
  3. Howto unit test widgets?
    By KaiWeing in forum Ext GWT: Discussion
    Replies: 2
    Last Post: 9 Aug 2010, 8:33 AM
  4. JS Unit Test Panel
    By Ronaldo in forum Ext 2.x: User Extensions and Plugins
    Replies: 9
    Last Post: 20 Feb 2009, 9:32 AM
  5. How to unit test Ext.Ajax (no server required)
    By danh2000 in forum Community Discussion
    Replies: 0
    Last Post: 8 Nov 2007, 2:38 AM

Thread Participants: 3