sw2at-ui 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/assets/javascripts/swat/app/factories/revision_model.coffee +0 -4
- data/app/assets/stylesheets/swat/swat_theme.scss +19 -0
- data/app/models/full_revision.rb +1 -1
- data/app/views/swat/pages/revisions/partials/_exceptions.slim +31 -29
- data/app/views/swat/pages/revisions/partials/_test_cases.slim +6 -0
- data/app/views/swat/pages/revisions/show.slim +1 -1
- data/app/views/swat/pages/revisions/summary.slim +1 -1
- data/spec/models/full_revision_spec.rb +4 -0
- data/sw2at-ui.gemspec +3 -3
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: d70ed465d48ad8e70989d7dc71d2b47ce4b1ff99
         | 
| 4 | 
            +
              data.tar.gz: 197506183b02b210bbd43b8df65bbfa469db30d6
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bf630950313d8303faf6f0a27c31fa6426573e7df2c885865d46aee6e007f8d302ab9a5375a0d8d22906e408554c9706cb85acc7d277633d3bc43ffa351a5203
         | 
| 7 | 
            +
              data.tar.gz: bc26fd1324660dc3ee64db19592cc876dba67bcf2e93f34b5cf30efdad97b7193a99d19cc7d4d43e5a983aff509b6ef081651fe80befdea0fb342659aff0af7d
         | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            0.0. | 
| 1 | 
            +
            0.0.10
         | 
| @@ -3,10 +3,6 @@ angular.module("SWAT").factory "RevisionModel", -> | |
| 3 3 | 
             
                constructor: (@data) ->
         | 
| 4 4 | 
             
                  window.Swat.log(@data)
         | 
| 5 5 |  | 
| 6 | 
            -
                prepareThreads: ->
         | 
| 7 | 
            -
                  for thread in @data.threads
         | 
| 8 | 
            -
                    thread.tests = @data.tests[thread.thread_id] if @data.tests
         | 
| 9 | 
            -
             | 
| 10 6 | 
             
            angular.module("SWAT").factory "RevisionModelFactory", (RevisionModel, GlResponse)->
         | 
| 11 7 | 
             
              (jsonResponse)->
         | 
| 12 8 | 
             
                object = new GlResponse(jsonResponse)
         | 
| @@ -113,6 +113,15 @@ html, body { | |
| 113 113 | 
             
                  }
         | 
| 114 114 |  | 
| 115 115 | 
             
                }
         | 
| 116 | 
            +
                #exceptions-groups {
         | 
| 117 | 
            +
                  .failed-tests {
         | 
| 118 | 
            +
                    .test-case {
         | 
| 119 | 
            +
                      color: rgb(68, 64, 64);
         | 
| 120 | 
            +
                      margin-top: 3px;
         | 
| 121 | 
            +
                    }
         | 
| 122 | 
            +
                  }
         | 
| 123 | 
            +
                }
         | 
| 124 | 
            +
             | 
| 116 125 | 
             
                #revisions-container {
         | 
| 117 126 | 
             
                  .revisions-header {
         | 
| 118 127 | 
             
                    margin: 0;
         | 
| @@ -164,6 +173,16 @@ html, body { | |
| 164 173 | 
             
                      }
         | 
| 165 174 | 
             
                      .detailed-info {
         | 
| 166 175 | 
             
                        padding: 0 8px;
         | 
| 176 | 
            +
                        .backtrace {
         | 
| 177 | 
            +
                          background-color: #400e30;
         | 
| 178 | 
            +
                          padding: 10px;
         | 
| 179 | 
            +
                          margin-bottom: 5px;
         | 
| 180 | 
            +
                          color: #f8f8f8;
         | 
| 181 | 
            +
                          border-radius: 3px;
         | 
| 182 | 
            +
                          p {
         | 
| 183 | 
            +
                            margin-bottom: 0;
         | 
| 184 | 
            +
                          }
         | 
| 185 | 
            +
                        }
         | 
| 167 186 | 
             
                      }
         | 
| 168 187 | 
             
                    }
         | 
| 169 188 | 
             
                    td.status {
         | 
    
        data/app/models/full_revision.rb
    CHANGED
    
    | @@ -31,7 +31,7 @@ class FullRevision | |
| 31 31 |  | 
| 32 32 | 
             
                def merge(revision, tests, update_status=false)
         | 
| 33 33 | 
             
                  revision.nested_threads.each do |th|
         | 
| 34 | 
            -
                    th.tests = tests.select{|test| test.thread_id.to_s == th.thread_id.to_s }
         | 
| 34 | 
            +
                    th.tests = tests.select{|test| test.thread_id.to_s == th.thread_id.to_s }.map{|test| test.thread_name = th.thread_name; test }
         | 
| 35 35 | 
             
                  end
         | 
| 36 36 |  | 
| 37 37 | 
             
                  assign_status(revision, update_status)
         | 
| @@ -1,31 +1,33 @@ | |
| 1 1 | 
             
            - test_id = '{{ "failed_"+test.id }}'
         | 
| 2 | 
            -
             | 
| 3 | 
            -
               | 
| 4 | 
            -
                 | 
| 5 | 
            -
             | 
| 6 | 
            -
             | 
| 7 | 
            -
             | 
| 8 | 
            -
                 | 
| 9 | 
            -
                  . | 
| 10 | 
            -
                     | 
| 11 | 
            -
                       | 
| 12 | 
            -
             | 
| 13 | 
            -
             | 
| 14 | 
            -
                   | 
| 15 | 
            -
                    . | 
| 16 | 
            -
                      . | 
| 17 | 
            -
                         | 
| 18 | 
            -
                           | 
| 19 | 
            -
             | 
| 20 | 
            -
             | 
| 21 | 
            -
             | 
| 22 | 
            -
             | 
| 23 | 
            -
             | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 26 | 
            -
             | 
| 27 | 
            -
             | 
| 2 | 
            +
            #exceptions-groups
         | 
| 3 | 
            +
              table#test-cases.table.table-bordered.table-hover
         | 
| 4 | 
            +
                tr
         | 
| 5 | 
            +
                  th.exception Exception
         | 
| 6 | 
            +
                  th Tests
         | 
| 7 | 
            +
                  th.duration Count
         | 
| 8 | 
            +
                tr.failed ng-repeat="exception in summary.exceptions"
         | 
| 9 | 
            +
                  td title="{{ exception.message }}"
         | 
| 10 | 
            +
                    .cell
         | 
| 11 | 
            +
                      strong
         | 
| 12 | 
            +
                        | {{ $index+1 }}.  
         | 
| 13 | 
            +
                      | {{ exception.message }}
         | 
| 14 | 
            +
                  td.failed-tests
         | 
| 15 | 
            +
                    span.cell
         | 
| 16 | 
            +
                      .test ng-repeat="test in exception.tests"
         | 
| 17 | 
            +
                        .main-info data-toggle="collapse" data-target="##{test_id}"
         | 
| 18 | 
            +
                          .test-case
         | 
| 19 | 
            +
                            strong
         | 
| 20 | 
            +
                              | {{ test.full_description }}
         | 
| 21 | 
            +
                            p
         | 
| 22 | 
            +
                              | {{ 'rspec '+test.location }}
         | 
| 23 | 
            +
                        .detailed-info.collapse id="#{test_id}"
         | 
| 24 | 
            +
                          span.message
         | 
| 25 | 
            +
                            strong
         | 
| 26 | 
            +
                              | {{ test.exception.message }}
         | 
| 27 | 
            +
                          .backtrace
         | 
| 28 | 
            +
                            p.trace-line ng-repeat="line in test.exception.backtrace track by $index"
         | 
| 29 | 
            +
                              | {{ line }}
         | 
| 28 30 |  | 
| 29 | 
            -
             | 
| 30 | 
            -
             | 
| 31 | 
            -
             | 
| 31 | 
            +
                  th.count
         | 
| 32 | 
            +
                    span.cell
         | 
| 33 | 
            +
                      | {{ exception.tests.length }}
         | 
| @@ -1,6 +1,8 @@ | |
| 1 1 | 
             
            table#test-cases.table.table-bordered.table-hover
         | 
| 2 2 | 
             
              tr
         | 
| 3 3 | 
             
                th Test
         | 
| 4 | 
            +
                - if thread
         | 
| 5 | 
            +
                  th Thread
         | 
| 4 6 | 
             
                th.duration Duration
         | 
| 5 7 | 
             
                th.status Status
         | 
| 6 8 | 
             
                th.command Location
         | 
| @@ -18,6 +20,10 @@ table#test-cases.table.table-bordered.table-hover | |
| 18 20 | 
             
                    .backtrace
         | 
| 19 21 | 
             
                      p.trace-line ng-repeat="line in test.exception.backtrace track by $index"
         | 
| 20 22 | 
             
                        | {{ line }}
         | 
| 23 | 
            +
                - if thread
         | 
| 24 | 
            +
                  td.thread
         | 
| 25 | 
            +
                    span.cell
         | 
| 26 | 
            +
                      | {{ test.thread_name }}
         | 
| 21 27 | 
             
                td.duration
         | 
| 22 28 | 
             
                  span.cell
         | 
| 23 29 | 
             
                    | {{ test.run_time |  number:0 }} sec
         | 
| @@ -21,7 +21,7 @@ | |
| 21 21 | 
             
                        | {{ tab.thread.thread_name }}
         | 
| 22 22 | 
             
                      span.label.total-examples
         | 
| 23 23 | 
             
                        | {{ tab.thread.tests.length }} / {{ tab.thread.total_runned }}
         | 
| 24 | 
            -
                    = render partial: 'swat/pages/revisions/partials/test_cases', locals: { object: 'tab.thread.tests' }
         | 
| 24 | 
            +
                    = render partial: 'swat/pages/revisions/partials/test_cases', locals: { object: 'tab.thread.tests', thread: false }
         | 
| 25 25 |  | 
| 26 26 |  | 
| 27 27 |  | 
| @@ -37,7 +37,7 @@ | |
| 37 37 | 
             
                      span.label Fails
         | 
| 38 38 | 
             
                    .tab-content
         | 
| 39 39 | 
             
                      #fails
         | 
| 40 | 
            -
                        = render partial: 'swat/pages/revisions/partials/test_cases', locals: { object: 'summary.fails' }
         | 
| 40 | 
            +
                        = render partial: 'swat/pages/revisions/partials/test_cases', locals: { object: 'summary.fails', thread: true }
         | 
| 41 41 | 
             
                  tab
         | 
| 42 42 | 
             
                    tab-heading
         | 
| 43 43 | 
             
                      span.label Exceptions
         | 
| @@ -85,6 +85,7 @@ describe FullRevision do | |
| 85 85 | 
             
                                :started_at=>"2015-06-20T19:37:09+03:00",
         | 
| 86 86 | 
             
                                :status=>"passed",
         | 
| 87 87 | 
             
                                :thread_id=>0,
         | 
| 88 | 
            +
                                :thread_name=>"Group",
         | 
| 88 89 | 
             
                                :threads_count=>"2",
         | 
| 89 90 | 
             
                                :time=>1434818198,
         | 
| 90 91 | 
             
                                :user=>"vitaliyt-pc"},
         | 
| @@ -99,6 +100,7 @@ describe FullRevision do | |
| 99 100 | 
             
                                :started_at=>"2015-06-20T19:37:13+03:00",
         | 
| 100 101 | 
             
                                :status=>"passed",
         | 
| 101 102 | 
             
                                :thread_id=>0,
         | 
| 103 | 
            +
                                :thread_name=>"Group",
         | 
| 102 104 | 
             
                                :threads_count=>"2",
         | 
| 103 105 | 
             
                                :time=>1434818198,
         | 
| 104 106 | 
             
                                :user=>"vitaliyt-pc"}],
         | 
| @@ -128,6 +130,7 @@ describe FullRevision do | |
| 128 130 | 
             
                                :started_at=>"2015-06-20T19:37:13+03:00",
         | 
| 129 131 | 
             
                                :status=>"passed",
         | 
| 130 132 | 
             
                                :thread_id=>1,
         | 
| 133 | 
            +
                                :thread_name=>"Unit",
         | 
| 131 134 | 
             
                                :threads_count=>"2",
         | 
| 132 135 | 
             
                                :time=>1434818198,
         | 
| 133 136 | 
             
                                :user=>"vitaliyt-pc"},
         | 
| @@ -142,6 +145,7 @@ describe FullRevision do | |
| 142 145 | 
             
                                :started_at=>"2015-06-20T19:37:09+03:00",
         | 
| 143 146 | 
             
                                :status=>"passed",
         | 
| 144 147 | 
             
                                :thread_id=>1,
         | 
| 148 | 
            +
                                :thread_name=>"Unit",
         | 
| 145 149 | 
             
                                :threads_count=>"2",
         | 
| 146 150 | 
             
                                :time=>1434818198,
         | 
| 147 151 | 
             
                                :user=>"vitaliyt-pc"}],
         | 
    
        data/sw2at-ui.gemspec
    CHANGED
    
    | @@ -2,16 +2,16 @@ | |
| 2 2 | 
             
            # DO NOT EDIT THIS FILE DIRECTLY
         | 
| 3 3 | 
             
            # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
         | 
| 4 4 | 
             
            # -*- encoding: utf-8 -*-
         | 
| 5 | 
            -
            # stub: sw2at-ui 0.0. | 
| 5 | 
            +
            # stub: sw2at-ui 0.0.10 ruby lib
         | 
| 6 6 |  | 
| 7 7 | 
             
            Gem::Specification.new do |s|
         | 
| 8 8 | 
             
              s.name = "sw2at-ui"
         | 
| 9 | 
            -
              s.version = "0.0. | 
| 9 | 
            +
              s.version = "0.0.10"
         | 
| 10 10 |  | 
| 11 11 | 
             
              s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
         | 
| 12 12 | 
             
              s.require_paths = ["lib"]
         | 
| 13 13 | 
             
              s.authors = ["Vitaly Tarasenko"]
         | 
| 14 | 
            -
              s.date = "2015- | 
| 14 | 
            +
              s.date = "2015-07-01"
         | 
| 15 15 | 
             
              s.description = " Control your tests, run them parallel. Check statuses of your revisions online. Share results to all team members. "
         | 
| 16 16 | 
             
              s.email = "vetal.tarasenko@gmail.com"
         | 
| 17 17 | 
             
              s.executables = ["rails"]
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: sw2at-ui
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.10
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Vitaly Tarasenko
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2015- | 
| 11 | 
            +
            date: 2015-07-01 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         |