Results 1 to 2 of 2

Thread: Summary section for tests

  1. #1
    Sencha Premium User
    Join Date
    Sep 2010
    Location
    UK
    Posts
    135

    Default Summary section for tests

    So far I am pretty happy with Sencha Test. I am just focusing on in-browser tests.

    As ST uses Jasmine for the assertions, it shows pretty basic summary messages like "Expected 1 to equal 1". Is there any way we can add more info to the messages? It's just hard to pin point where exactly it is heading for long complex functional tests. Or is there any command like ST.log can output into summary?

    Thanks
    Joe

  2. #2
    Sencha - Sales Team daniel.gallo's Avatar
    Join Date
    Apr 2009
    Location
    Redwood City, CA
    Posts
    331
    Answers
    52

    Default

    Glad to hear you are happy with Sencha Test so far!

    You could do something like this if you wanted to tag on additional messages to the different pass/fail statements:

    Code:
        it('should validate some expectations', function() {
            ST.grid('grid[stateId="stateGrid"]')
                .expect('title').toEqual('Basic Grid', 'for the grid component');
    
    
            expect(1).toBe(1, 'because it must be equal');
        });
    Daniel Gallo
    Senior Solutions Architect
    Sencha Inc.

Similar Threads

  1. Running Unit Tests hangs saying "Loading Tests"
    By nathaniel.fields in forum Q&A
    Replies: 8
    Last Post: 31 May 2016, 1:25 AM
  2. Replies: 6
    Last Post: 8 Feb 2016, 2:32 PM
  3. Replies: 2
    Last Post: 22 Sep 2015, 3:03 AM
  4. Replies: 2
    Last Post: 21 Aug 2014, 10:47 AM

Posting Permissions

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