Skip to content
JavaScript Ruby HTML CSS Gherkin Shell
Branch: master
Clone or download
Anand Bagmar
Anand Bagmar updated gem versions
Latest commit 2a302c2 Jul 11, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Fix issue with seed data Oct 25, 2017
bin reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
config fix asset changes required when running in production mode May 10, 2017
db Fix issue with seed data Oct 25, 2017
doc Anand - added some more screenshots Mar 17, 2015
features Fix cucumber tests May 20, 2017
images images and readme Jan 18, 2013
lib reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
public reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
sample_build_tasks added new column in test_metadata to capture the ci job number for th… May 13, 2017
script Anand - fixed indentation in script Apr 2, 2013
spec added new column in test_metadata to capture the ci job number for th… May 13, 2017
.gitignore Removed Gemfile.lock and added vendor directory to .gitignore May 3, 2017
.rspec [Aasawaree] Generate rpsec report in log directory Feb 25, 2013
.ruby-gemset updated gem versions. do not check in Gemfile.lock. commented some te… Apr 20, 2017
.ruby-version updated ruby version Jul 11, 2018
Err_test.zip Error file checked in Jan 28, 2013
Gemfile Fix cucumber tests May 20, 2017
Gemfile.lock updated gem versions Jul 11, 2018
License.txt changed copyright to Anand Bagmar Apr 20, 2017
README.rdoc update README May 11, 2017
Rakefile updated gem versions. do not check in Gemfile.lock. commented some te… Apr 20, 2017
Vagrantfile reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
config.ru reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
output-jasmine.html reformatted code. fixed manual upload_data functionality (also added … May 8, 2017
sample.zip added a sample.zip to run cukes test on that sample Jan 25, 2013
startTTA.sh do not restart mysql when starting tea May 12, 2017

README.rdoc

TTA - Test Trend Analyzer

TTA is an independent product that provides a way to do Trend Analysis across your test suites.

On the consumer front, TTA consumes xUnit/* based results and other raw data from across your projects and test frameworks and archives it. On the view front, TTA provides some simple reports, and a way to create custom reports that displays Test Trends for you.

See the TTA wiki page for more information.

Copyright

/**

* Created by: Anand Bagmar
* Email: abagmar@gmail.com
*
* Copyright 2013 Anand Bagmar.  Distributed under the Apache 2.0 License
*
* See LICENSE.txt for further details.

**/

Installation steps

  • Install ruby 2.4.1

    brew install rbenv ruby-build
    
    # Add rbenv to bash so that it loads every time you open a terminal
    echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
    source ~/.bash_profile
    
    rbenv rehash
    rbenv install 2.4.1
    rbenv rehash
    rbenv global 2.4.1
    rbenv local 2.4.1
  • Install Gems

    gem install bundler
    bundle install --path vendor/bundle
  • Install Rails

    gem install rails -v 4.2.8
    rbenv rehash
    rails -v
    
    bundle install
  • Install MySQL 5.7.18 and start the server.

    brew install mysql
  • Create users in mysql

    TTA_USER, TTA_PASSWORD, RAILS_ENV=prod
    
    mysql -uroot
    CREATE USER '<TTA_USER>'@'%' IDENTIFIED BY '<TTA_PASSWORD>';
    GRANT ALL PRIVILEGES ON * . * TO '<TTA_USER>'@'%';
    FLUSH PRIVILEGES
    
    Create .my.cnf file in ~ directory with contents
    {code}
    [mysqld]
    bind-address = 0.0.0.0
    {code}
    
    Restart mysql server
  • Using TTA

Get the TTA code from Github by executing the following command from the folder of your choice. 'git clone github.com/anandbagmar/tta.git' Install Bundler and Run the bundle of commands in the same folder using command 'bundle install' Specify destination path for storing logs in server. To see the available commands use: 'rake -T' To setup the database,for test environment use: 'RAILS_ENV=test rake db:create db:setup db:migrate' To start TTA in test mode use: 'RAILS_ENV=test rails s' To run the specs use: 'rake spec' Write rake task to upload logs and hit the server with the given static IP.

  • Starting TTA in production mode

    Ensure TTA_PROD_USER and TTA_PROD_PASSWORD environment variables are set
    pre-compile assets
        RAILS_ENV=production bundle exec rake assets:clean assets:clobber assets:precompile
    FIRST TIME DB setup - tta_prod database
        RAILS_ENV=production bundle exec rake db:recreate
    
    run migration
        RAILS_ENV=production bundle exec rake assets:clean assets:clobber assets:precompile db:migrate
    start TTA in production mode
        RAILS_ENV=production bundle exec rails s -b <server_ip or hostname>
You can’t perform that action at this time.