Results 1 to 7 of 7

Thread: Ext JS unit testing

  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2008
    Posts
    10
    Vote Rating
    0
      0  

    Question Ext JS unit testing

    Is YUI Test the best option for Ext JS unit testing for 3.2.2 at the moment or is there something more preferable?
    I'm very comfortable with JUnit (YUI Test appears to share some similarities) for Java code unit tests so that might weight my decision unless someone has a compelling reason it should not.

  2. #2
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    We're using Jasmine internally now and loving it. We will probably recommend that as the default test framework for Sencha apps in the future.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Ext JS Premium Member
    Join Date
    Aug 2007
    Location
    Antwerp, Belgium
    Posts
    582
    Vote Rating
    143
      0  

    Default

    It would be nice to see some examples of how you're using it specifically. Releasing the unit test suite publicly (even if just for paying customers) would be awesome.

  4. #4
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    Sure - I'll see if we can get the tests built into the next release.
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  5. #5
    Ext User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default

    Can you give us already some examples how extjs did setup the jasmine integration, so we can already start using jasmine internally as well. We just started with extjs 3 now and wanted to use jasmine for testing. So a kind of cookbook and best practices how to set this up with extjs would be handy. We visited the sencha forum last month however the session about jasmine on November 16th did not help us much.

  6. #6
    Sencha Premium User mrsunshine's Avatar
    Join Date
    Sep 2008
    Location
    Germany - Darmstadt
    Posts
    693
    Vote Rating
    13
      0  

    Default

    you can take look int the Sencha Touch examples, there already some jasmin tests

  7. #7
    Ext User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
      0  

    Default

    I looked into the sench tough examples and found the stuff. However when looking into SpecRunner.html I see imports of sources which are missing in sencha tough package. How can I find this stuff to have the examples running?


    <link rel="stylesheet" type="text/css" href="../../src/platform/test/jasmine/lib/reporter/resources/reporter.css" />
    <script type="text/javascript" src="../../src/platform/test/jasmine/lib/jasmine-1.0.1/jasmine.js"></script>
    <script type="text/javascript" src="../../src/platform/test/jasmine/lib/reporter/src/Spec.js"></script>
    <script type="text/javascript" src="../../src/platform/test/jasmine/lib/reporter/src/Reporter.js"></script>

Similar Threads

  1. 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
  2. UI / Unit Testing Forum
    By arthurakay in forum Community Discussion
    Replies: 5
    Last Post: 5 Aug 2009, 8:09 AM
  3. Unit Testing
    By hat27533 in forum Community Discussion
    Replies: 1
    Last Post: 26 Jan 2009, 10:52 AM
  4. Unit Testing
    By rgoff in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 16 Sep 2007, 8:08 PM
  5. Unit Testing - JsMock
    By tgreiser in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 28 May 2007, 5:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •