31 |
--------------------------------------------------------------------------------
/config/initializers/inflections.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Add new inflection rules using the following format. Inflections
4 | # are locale specific, and you may define rules for as many different
5 | # locales as you wish. All of these examples are active by default:
6 | ActiveSupport::Inflector.inflections(:en) do |inflect|
7 | inflect.acronym 'API'
8 | # inflect.plural /^(ox)$/i, '\1en'
9 | # inflect.singular /^(ox)en/i, '\1'
10 | # inflect.irregular 'person', 'people'
11 | # inflect.uncountable %w( fish sheep )
12 | end
13 |
14 | # These inflection rules are supported but not enabled by default:
15 | # ActiveSupport::Inflector.inflections(:en) do |inflect|
16 | # inflect.acronym 'RESTful'
17 | # end
18 |
--------------------------------------------------------------------------------
/db/migrate/20140302222218_create_results.rb:
--------------------------------------------------------------------------------
1 | class CreateResults < ActiveRecord::Migration
2 | def change
3 | create_table :results do |t|
4 |
5 | # The objects these results are associated with
6 | t.integer :test_definition_id
7 |
8 | # Run grouping (Which captures target and world information)
9 | t.integer :run_id
10 |
11 | # Result parent -- this would typically cache child summary results
12 | t.integer :parent_id
13 |
14 | # Simple integer value associated with a result
15 | t.integer :value
16 |
17 | t.string :status
18 | t.text :output
19 | t.timestamp :started_at
20 | t.timestamp :finished_at
21 |
22 | t.timestamps
23 | end
24 | end
25 | end
26 |
--------------------------------------------------------------------------------
/app/assets/javascripts/application.js:
--------------------------------------------------------------------------------
1 | // This is a manifest file that'll be compiled into application.js, which will include all the files
2 | // listed below.
3 | //
4 | // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5 | // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6 | //
7 | // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8 | // compiled file.
9 | //
10 | // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11 | // about supported directives.
12 | //
13 | //= require jquery
14 | //= require jquery_ujs
15 | //= require_tree .
16 | //= require bootstrap-sprockets
17 |
--------------------------------------------------------------------------------
/config/initializers/secret_token.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Your secret key is used for verifying the integrity of signed cookies.
4 | # If you change this key, all old signed cookies will become invalid!
5 |
6 | # Make sure the secret is at least 30 characters and all random,
7 | # no regular words or you'll be exposed to dictionary attacks.
8 | # You can use `rake secret` to generate a secure secret key.
9 |
10 | # Make sure your secret_key_base is kept private
11 | # if you're sharing your code publicly.
12 | Testmine::Application.config.secret_key_base = ENV['RAILS_SECRET_KEY_BASE'] || 'b28ee70e95c8790954be8eb5d2bb743cccd95a2e1e759c18b493652312f8378fe0280f51313782683d036176147321bbe2310483863372c398b19991c0c256be'
13 |
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
1 | # SQLite version 3.x
2 | # gem install sqlite3
3 | #
4 | # Ensure the SQLite 3 gem is defined in your Gemfile
5 | # gem 'sqlite3'
6 | development:
7 | adapter: mysql2
8 | host: app-db
9 | database: testmite
10 | username: root
11 | password: testmine
12 | port: 3306
13 | variables:
14 | sql_mode: TRADITIONAL
15 |
16 | # Warning: The database defined as "test" will be erased and
17 | # re-generated from your development database when you run "rake".
18 | # Do not set this db to the same as development or production.
19 | test:
20 | adapter: sqlite3
21 | database: db/test.sqlite3
22 | pool: 5
23 | timeout: 5000
24 |
25 | production:
26 | adapter: sqlite3
27 | database: db/production.sqlite3
28 | pool: 5
29 | timeout: 5000
30 |
--------------------------------------------------------------------------------
/app/models/suite.rb:
--------------------------------------------------------------------------------
1 | class Suite < ActiveRecord::Base
2 |
3 | has_many :test_definitions
4 |
5 | def self.find_or_create(args)
6 | Suite.where(
7 | project: args[:project],
8 | name: args[:name]
9 | ).first_or_create do |suite|
10 | suite.project = args[:project]
11 | suite.name = args[:name]
12 | suite.runner = args[:runner]
13 | suite.description = args[:description]
14 | suite.documentation = args[:documentation]
15 | suite.url = args[:url]
16 | suite.repo = args[:repo]
17 | end
18 | end
19 |
20 | def tests
21 | TestDefinition.where( :suite_id => self.id, :parent_id => nil )
22 | end
23 |
24 | def add_test_definition(args)
25 | args[:suite_id] = self.id
26 | TestDefinition.find_or_create(args)
27 | end
28 |
29 | end
30 |
--------------------------------------------------------------------------------
/db/migrate/20150204103555_add_missing_unique_indices.acts_as_taggable_on_engine.rb:
--------------------------------------------------------------------------------
1 | # This migration comes from acts_as_taggable_on_engine (originally 2)
2 | class AddMissingUniqueIndices < ActiveRecord::Migration
3 | def self.up
4 | add_index :tags, :name, unique: true
5 |
6 | remove_index :taggings, :tag_id
7 | remove_index :taggings, [:taggable_id, :taggable_type, :context]
8 | add_index :taggings,
9 | [:tag_id, :taggable_id, :taggable_type, :context, :tagger_id, :tagger_type],
10 | unique: true, name: 'taggings_idx'
11 | end
12 |
13 | def self.down
14 | remove_index :tags, :name
15 |
16 | remove_index :taggings, name: 'taggings_idx'
17 | add_index :taggings, :tag_id
18 | add_index :taggings, [:taggable_id, :taggable_type, :context]
19 | end
20 | end
21 |
--------------------------------------------------------------------------------
/app/views/reliability/show.html.erb:
--------------------------------------------------------------------------------
1 |
<%=@suite_name -%> Reliability
2 |
3 |
4 |
5 |
Measure
6 |
Number of Failures and Errors in Test Suite
7 |
Number of Passes in Test Suite
8 |
Reliability Ratio as a Percentage
9 |
10 |
11 |
Last 2 days
12 |
<%=@fail_last_day -%>
13 |
<%=@pass_last_day -%>
14 |
<%=@reliability_last_day-%>
15 |
16 |
17 |
Last 7 days
18 |
<%=@fail_last_week -%>
19 |
<%=@pass_last_week -%>
20 |
<%=@reliability_last_week-%>
21 |
22 |
23 |
Last 30 days
24 |
<%=@fail_last_month -%>
25 |
<%=@pass_last_month -%>
26 |
<%=@reliability_last_month-%>
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/spec/models/result_spec.rb:
--------------------------------------------------------------------------------
1 | require 'spec_helper'
2 |
3 | describe Result do
4 | describe "adding a result" do
5 |
6 | before(:each) do
7 |
8 | @test = TestDefinition.find_or_create(
9 | name: 'Scanning item',
10 | node_type: 'Cucumber::Feature',
11 | )
12 |
13 | @world = World::SingleComponent.find_or_create(
14 | :component => "TestMite",
15 | :project => "Titan",
16 | :version => "1.2.3" )
17 |
18 | @run = Run.create( world: @world, target: 'x86_64' )
19 | end
20 |
21 | it "creates a result" do
22 |
23 | Result.create(
24 | :test_definition_id => @test.id,
25 | :status => "pass",
26 | :run_id => @run.id
27 | )
28 |
29 | @run.results.count == 1
30 | @run.results.first.status == "passed"
31 | end
32 |
33 | end
34 |
35 |
36 |
37 | end
38 |
--------------------------------------------------------------------------------
/spec/models/suite_spec.rb:
--------------------------------------------------------------------------------
1 | require 'spec_helper'
2 |
3 | describe Suite do
4 | describe "find_or_create" do
5 |
6 | it "creates a suite" do
7 |
8 | suite = Suite.find_or_create(
9 | project: 'Titan',
10 | name: 'Cucumber features',
11 | runner: 'Ruby Cucumber',
12 | description: 'Feature files for the Titan project',
13 | documentation: "Long description of what's going on",
14 | url: 'https://www.github.com/bbc-test',
15 | repo: 'https://www.github.com/bbc-test/titan'
16 | )
17 |
18 | suite.project.should == 'Titan'
19 | suite.name.should == "Cucumber features"
20 | suite.runner.should == 'Ruby Cucumber'
21 | suite.description.should be_a String
22 | suite.url.should be_a String
23 | suite.repo.should be_a String
24 |
25 | end
26 |
27 | end
28 | end
29 |
--------------------------------------------------------------------------------
/db/migrate/20140218211529_create_test_definitions.rb:
--------------------------------------------------------------------------------
1 | # Table for capturing hierarchical test definitions
2 | class CreateTestDefinitions < ActiveRecord::Migration
3 | def change
4 | create_table :test_definitions do |t|
5 | t.string :name # "Scanning item"
6 | t.string :node_type # Cucumber::Feature
7 | t.text :description # "\nAs a cashier\nI want to scan an item\nSo I can demand cash"
8 | t.string :file # "features\/scan_items.feature"
9 | t.integer :line # 1 -- line number from the file where the definition starts
10 |
11 | # Foreign keys
12 | t.integer :parent_id, index: true # What owns this test?
13 | t.integer :suite_id, index: true # What suite does it belong to?
14 |
15 | t.index [:name, :suite_id, :file, :parent_id], name: 'lookup'
16 |
17 | t.timestamps
18 | end
19 | end
20 | end
21 |
--------------------------------------------------------------------------------
/db/migrate/20150204103554_acts_as_taggable_on_migration.acts_as_taggable_on_engine.rb:
--------------------------------------------------------------------------------
1 | # This migration comes from acts_as_taggable_on_engine (originally 1)
2 | class ActsAsTaggableOnMigration < ActiveRecord::Migration
3 | def self.up
4 | create_table :tags do |t|
5 | t.string :name
6 | end
7 |
8 | create_table :taggings do |t|
9 | t.references :tag
10 |
11 | # You should make sure that the column created is
12 | # long enough to store the required class names.
13 | t.references :taggable, polymorphic: true
14 | t.references :tagger, polymorphic: true
15 |
16 | # Limit is created to prevent MySQL error on index
17 | # length for MyISAM table type: http://bit.ly/vgW2Ql
18 | t.string :context, limit: 128
19 |
20 | t.datetime :created_at
21 | end
22 |
23 | add_index :taggings, :tag_id
24 | add_index :taggings, [:taggable_id, :taggable_type, :context]
25 | end
26 |
27 | def self.down
28 | drop_table :taggings
29 | drop_table :tags
30 | end
31 | end
32 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2016 BBC
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/config/application.rb:
--------------------------------------------------------------------------------
1 | require File.expand_path('../boot', __FILE__)
2 |
3 | require 'rails/all'
4 |
5 | # Require the gems listed in Gemfile, including any gems
6 | # you've limited to :test, :development, or :production.
7 | Bundler.require(:default, Rails.env)
8 |
9 | module Testmine
10 | class Application < Rails::Application
11 | # Settings in config/environments/* take precedence over those specified here.
12 | # Application configuration should go into files in config/initializers
13 | # -- all .rb files in that directory are automatically loaded.
14 |
15 | # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16 | # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17 | # config.time_zone = 'Central Time (US & Canada)'
18 |
19 | # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20 | # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21 | # config.i18n.default_locale = :de
22 |
23 | begin
24 | config.middleware.use Rack::BBCAuth
25 | rescue NameError => e
26 | end
27 | end
28 | end
29 |
--------------------------------------------------------------------------------
/app/views/worlds/compare.html.erb:
--------------------------------------------------------------------------------
1 |
2 |
91 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Testmine
2 |
3 | Testmine is test results tool for storing and analysing result data. Testmine takes result output for a test run, and stores it in a result bucket for historic analysis.
4 |
5 | ## Concepts
6 |
7 | ### Worlds
8 |
9 | Testmine stores test results in buckets called worlds. A world is identified by the project, component, and version strings submitted along with the test results. So, for example, if you're testing a mobile application like iPlayer, you might submit against:
10 |
11 | project: 'iPlayer',
12 | component: 'android'
13 | version:
14 |
15 | This would mean every build has its results captured in a different bucket. Testmine uses the project and component names to allow you to compare worlds under test. So you could compare a new feature branch build, '1.1-new-feature' against the results for your last know release candidate: '1.0-rc'
16 |
17 | ### Runs
18 |
19 | Runs are the individual executions of your test suites. A run may comprise multiple test results for a particular world and target. A target represents the platform you are testing against. So for our Android app, it might be a particular device or OS build. You can view individual run results in testmine by clicking on a run id. While it can be useful to look at specific run results, the aggregated world views give an overview of your testing for a particular world.
20 |
21 | ### Aggregate Results
22 |
23 | Testmine aggregates all the runs for a world into a single-page aggregated view of the results. Results are organised by target. It's important to note that the aggregated view takes the best results from across your test runs. So if you have two different runs, and a test passed in first run, but failed in the second run, the second result is discarded. This behaviour means that testmine filters out failed results where test behaviour is inconsistent.
24 |
25 | ### Comparison Results
26 |
27 | Testmine can present a side-by-side view of aggregate results for two worlds. Testmine compares the results to provide a comparason status. They have the following meanings:
28 | * **PASS** Results passed consistently in line with the reference world
29 | * **NEWPASS** Tests that previously failed are now passing
30 | * **REGRESS** Tests that previously passed are now failing
31 | * **FAIL** Tests that failed previously are still failing
32 | * **ERROR** Tests failed to execute correctly
33 | * **NOTRUN** The tests have not been run
34 |
35 | In addition, the comparison result will be faded if the results between the two worlds exactly match.
36 |
37 | ## Running testmine
38 |
39 | Testmine is a straightforward Rails application. You can deploy a local copy easily by checking it out and running:
40 |
41 |
42 | ### Method # 1: Run directly on Host Machine
43 |
44 | bundle install --local --without development test
45 | bundle exec rake db:migrate
46 | bundle exec rails s
47 |
48 | You should get a testmine instance on port 3002 with an sqlite database.
49 |
50 | ### Method # 2: Run it on Docker
51 |
52 | #### Prerequiste for Docker
53 | 1. Download and install docker https://docs.docker.com/docker-for-mac/install/
54 | 2. Install virtualbox on your machine.
55 | ```
56 | $ brew cask install virtualbox
57 | ```
58 | 3. Create a default docker machine
59 | ```
60 | $ docker-machine create default
61 | ```
62 | 4. Ensure your docker machine is running
63 | ```
64 | $ docker-machine status
65 | ```
66 | It should say "Running".
67 |
68 | 5. Get the ip address of your docker machine
69 | ```
70 | $ docker-machine env default
71 | ...
72 | export DOCKER_HOST="tcp://192.168.99.100:2376"
73 | ...
74 | ```
75 | The ip address is 192.168.99.100 in this case.
76 | 6. Run the following command to configure your shell
77 | ```
78 | eval $(docker-machine env default)
79 | ```
80 |
81 | #### Run testmine on Docker
82 |
83 | Run the following to startup a docker machine for testmine.
84 |
85 | ```
86 | docker-compose build
87 | docker-compose up
88 | ```
89 |
90 | Visit the browser http://192.168.99.100:3002 to see the output.
91 |
92 |
93 |
94 | ## Submitting results
95 |
96 | In order to submit your results to testmine, you will need to format your test results as Res IR
97 | (see our [res](https://github.com/bbc/res) repo for more information). Res provides a number of formatters for sumbitting from popular test runner such as cucumber and rspec.
98 |
99 | Alternatively you can hand-craft your own res output, and submit it against the endpoint: /api/v1/submit
100 |
101 | ## License
102 |
103 | Testmine is available to everyone under the terms of the MIT open source licence.
104 | Take a look at the LICENSE file in the code.
105 |
106 | Copyright (c) 2016 BBC
107 |
--------------------------------------------------------------------------------
/app/views/worlds/aggregate_group_element.html.erb:
--------------------------------------------------------------------------------
1 |
2 | <% if !@tags.empty? %>
3 | <% @tags.each do |t| %>
4 |
10 | <% end %>
11 | <% end %>
12 |
13 |
119 |
120 | <% end %>
121 |
122 | <% end %>
123 |
124 |
125 |
--------------------------------------------------------------------------------
/docker/docker-entrypoint-initdb.d/01-testmite_structure.sql:
--------------------------------------------------------------------------------
1 | -- MySQL dump 10.14 Distrib 5.5.60-MariaDB, for Linux (x86_64)
2 | --
3 | -- Host: app-db Database: testmite
4 | -- ------------------------------------------------------
5 | -- Server version 5.7.24
6 |
7 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10 | /*!40101 SET NAMES utf8 */;
11 | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12 | /*!40103 SET TIME_ZONE='+00:00' */;
13 | /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14 | /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15 | /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16 | /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17 |
18 | --
19 | -- Create the database `testmite`
20 | --
21 |
22 | CREATE DATABASE testmite;
23 | USE testmite;
24 |
25 | --
26 | -- Table structure for table `results`
27 | --
28 |
29 | DROP TABLE IF EXISTS `results`;
30 | /*!40101 SET @saved_cs_client = @@character_set_client */;
31 | /*!40101 SET character_set_client = utf8 */;
32 | CREATE TABLE `results` (
33 | `id` int(11) NOT NULL AUTO_INCREMENT,
34 | `test_definition_id` int(11) DEFAULT NULL,
35 | `run_id` int(11) DEFAULT NULL,
36 | `parent_id` int(11) DEFAULT NULL,
37 | `value` int(11) DEFAULT NULL,
38 | `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
39 | `output` text COLLATE utf8_unicode_ci,
40 | `started_at` datetime DEFAULT NULL,
41 | `finished_at` datetime DEFAULT NULL,
42 | `created_at` datetime DEFAULT NULL,
43 | `updated_at` datetime DEFAULT NULL,
44 | PRIMARY KEY (`id`),
45 | KEY `index_results_on_parent_id` (`parent_id`),
46 | KEY `index_results_on_run_id` (`run_id`),
47 | KEY `index_results_on_run_id_and_test_definition_id` (`run_id`,`test_definition_id`),
48 | KEY `index_results_on_test_definition_id` (`test_definition_id`)
49 | ) ENGINE=InnoDB AUTO_INCREMENT=18595903 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
50 | /*!40101 SET character_set_client = @saved_cs_client */;
51 |
52 | --
53 | -- Table structure for table `runs`
54 | --
55 |
56 | DROP TABLE IF EXISTS `runs`;
57 | /*!40101 SET @saved_cs_client = @@character_set_client */;
58 | /*!40101 SET character_set_client = utf8 */;
59 | CREATE TABLE `runs` (
60 | `id` int(11) NOT NULL AUTO_INCREMENT,
61 | `world_id` int(11) DEFAULT NULL,
62 | `owner` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
63 | `hive_job_id` int(11) DEFAULT NULL,
64 | `target` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
65 | `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
66 | `started_at` datetime DEFAULT NULL,
67 | `finished_at` datetime DEFAULT NULL,
68 | `created_at` datetime DEFAULT NULL,
69 | `updated_at` datetime DEFAULT NULL,
70 | PRIMARY KEY (`id`),
71 | KEY `index_runs_on_world_id` (`world_id`)
72 | ) ENGINE=InnoDB AUTO_INCREMENT=411184 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
73 | /*!40101 SET character_set_client = @saved_cs_client */;
74 |
75 | --
76 | -- Table structure for table `schema_migrations`
77 | --
78 |
79 | DROP TABLE IF EXISTS `schema_migrations`;
80 | /*!40101 SET @saved_cs_client = @@character_set_client */;
81 | /*!40101 SET character_set_client = utf8 */;
82 | CREATE TABLE `schema_migrations` (
83 | `version` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
84 | UNIQUE KEY `unique_schema_migrations` (`version`)
85 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
86 | /*!40101 SET character_set_client = @saved_cs_client */;
87 |
88 | --
89 | -- Table structure for table `suites`
90 | --
91 |
92 | DROP TABLE IF EXISTS `suites`;
93 | /*!40101 SET @saved_cs_client = @@character_set_client */;
94 | /*!40101 SET character_set_client = utf8 */;
95 | CREATE TABLE `suites` (
96 | `id` int(11) NOT NULL AUTO_INCREMENT,
97 | `project` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
98 | `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
99 | `runner` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
100 | `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
101 | `documentation` text COLLATE utf8_unicode_ci,
102 | `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
103 | `repo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
104 | `created_at` datetime DEFAULT NULL,
105 | `updated_at` datetime DEFAULT NULL,
106 | PRIMARY KEY (`id`),
107 | KEY `index_suites_on_project_and_name` (`project`,`name`)
108 | ) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
109 | /*!40101 SET character_set_client = @saved_cs_client */;
110 |
111 | --
112 | -- Table structure for table `taggings`
113 | --
114 |
115 | DROP TABLE IF EXISTS `taggings`;
116 | /*!40101 SET @saved_cs_client = @@character_set_client */;
117 | /*!40101 SET character_set_client = utf8 */;
118 | CREATE TABLE `taggings` (
119 | `id` int(11) NOT NULL AUTO_INCREMENT,
120 | `tag_id` int(11) DEFAULT NULL,
121 | `taggable_id` int(11) DEFAULT NULL,
122 | `taggable_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
123 | `tagger_id` int(11) DEFAULT NULL,
124 | `tagger_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
125 | `context` varchar(128) COLLATE utf8_unicode_ci DEFAULT NULL,
126 | `created_at` datetime DEFAULT NULL,
127 | PRIMARY KEY (`id`),
128 | UNIQUE KEY `taggings_idx` (`tag_id`,`taggable_id`,`taggable_type`,`context`,`tagger_id`,`tagger_type`),
129 | KEY `index_taggings_on_taggable_id_and_taggable_type_and_context` (`taggable_id`,`taggable_type`,`context`)
130 | ) ENGINE=InnoDB AUTO_INCREMENT=2018927 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
131 | /*!40101 SET character_set_client = @saved_cs_client */;
132 |
133 | --
134 | -- Table structure for table `tags`
135 | --
136 |
137 | DROP TABLE IF EXISTS `tags`;
138 | /*!40101 SET @saved_cs_client = @@character_set_client */;
139 | /*!40101 SET character_set_client = utf8 */;
140 | CREATE TABLE `tags` (
141 | `id` int(11) NOT NULL AUTO_INCREMENT,
142 | `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
143 | `taggings_count` int(11) DEFAULT '0',
144 | PRIMARY KEY (`id`),
145 | UNIQUE KEY `index_tags_on_name` (`name`)
146 | ) ENGINE=InnoDB AUTO_INCREMENT=196 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
147 | /*!40101 SET character_set_client = @saved_cs_client */;
148 |
149 | --
150 | -- Table structure for table `test_definitions`
151 | --
152 |
153 | DROP TABLE IF EXISTS `test_definitions`;
154 | /*!40101 SET @saved_cs_client = @@character_set_client */;
155 | /*!40101 SET character_set_client = utf8 */;
156 | CREATE TABLE `test_definitions` (
157 | `id` int(11) NOT NULL AUTO_INCREMENT,
158 | `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
159 | `node_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
160 | `description` text COLLATE utf8_unicode_ci,
161 | `file` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
162 | `line` int(11) DEFAULT NULL,
163 | `parent_id` int(11) DEFAULT NULL,
164 | `suite_id` int(11) DEFAULT NULL,
165 | `created_at` datetime DEFAULT NULL,
166 | `updated_at` datetime DEFAULT NULL,
167 | PRIMARY KEY (`id`),
168 | KEY `lookup` (`name`,`suite_id`,`file`,`parent_id`),
169 | KEY `index_test_definitions_on_suite_id` (`suite_id`)
170 | ) ENGINE=InnoDB AUTO_INCREMENT=28045 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
171 | /*!40101 SET character_set_client = @saved_cs_client */;
172 |
173 | --
174 | -- Table structure for table `worlds`
175 | --
176 |
177 | DROP TABLE IF EXISTS `worlds`;
178 | /*!40101 SET @saved_cs_client = @@character_set_client */;
179 | /*!40101 SET character_set_client = utf8 */;
180 | CREATE TABLE `worlds` (
181 | `id` int(11) NOT NULL AUTO_INCREMENT,
182 | `type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
183 | `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
184 | `description` text COLLATE utf8_unicode_ci,
185 | `project` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
186 | `component` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
187 | `version` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
188 | `created_at` datetime DEFAULT NULL,
189 | `updated_at` datetime DEFAULT NULL,
190 | PRIMARY KEY (`id`),
191 | KEY `index_worlds_on_project_and_component` (`project`,`component`),
192 | KEY `index_worlds_on_project_and_component_and_version` (`project`,`component`,`version`)
193 | ) ENGINE=InnoDB AUTO_INCREMENT=19839 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
194 | /*!40101 SET character_set_client = @saved_cs_client */;
195 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
196 |
197 | /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
198 | /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
199 | /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
200 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
201 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
202 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
203 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
204 |
205 | -- Dump completed on 2018-11-29 11:21:43
206 |
--------------------------------------------------------------------------------
/app/assets/stylesheets/bootstrap-2/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
--------------------------------------------------------------------------------