Add codeclimate test reporter
parent
1b81dd5ada
commit
05359e0d72
|
@ -1 +1 @@
|
|||
2.1.1
|
||||
2.2.0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
language: ruby
|
||||
rvm:
|
||||
- 2.1.0
|
||||
- 2.2.0
|
||||
services:
|
||||
- mongodb
|
||||
notifications:
|
||||
|
@ -8,4 +8,4 @@ notifications:
|
|||
env:
|
||||
# A 'fake' secret token for use in our CI env.
|
||||
# Don't worry- this isn't the real one.
|
||||
- SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592
|
||||
- SECRET_TOKEN=e815982094c62436066bafc9151f2d33c4a351a776654cb7487476de260a4592
|
||||
|
|
2
Gemfile
2
Gemfile
|
@ -48,5 +48,5 @@ group :test do
|
|||
gem 'capybara'
|
||||
gem 'launchy' #save_and_open_page while debugging integration tests.
|
||||
gem 'capybara-angular' # Avoid race conditions in angular integration tests
|
||||
gem 'coveralls', require: false
|
||||
gem 'codeclimate-test-reporter', require: nil
|
||||
end
|
||||
|
|
|
@ -96,6 +96,8 @@ GEM
|
|||
code_analyzer (0.4.5)
|
||||
sexp_processor
|
||||
code_metrics (0.1.3)
|
||||
codeclimate-test-reporter (0.4.7)
|
||||
simplecov (>= 0.7.1, < 1.0.0)
|
||||
coderay (1.1.0)
|
||||
coffee-rails (4.1.0)
|
||||
coffee-script (>= 2.2.0)
|
||||
|
@ -338,6 +340,7 @@ DEPENDENCIES
|
|||
active_model_serializers (~> 0.8.3)
|
||||
capybara
|
||||
capybara-angular
|
||||
codeclimate-test-reporter
|
||||
coffee-rails
|
||||
devise!
|
||||
factory_girl_rails
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[![Code Climate](https://codeclimate.com/github/FarmBot/farmbot-web-app.png)](https://codeclimate.com/github/FarmBot/farmbot-web-app)
|
||||
[![Build Status](https://travis-ci.org/FarmBot/farmbot-web-app.svg)](https://travis-ci.org/FarmBot/farmbot-web-app)
|
||||
# Farmbot Web App
|
||||
[![Test Coverage](https://codeclimate.com/github/FarmBot/farmbot-web-app/badges/coverage.svg)](https://codeclimate.com/github/FarmBot/farmbot-web-app)# Farmbot Web App
|
||||
|
||||
This Repo is the Web based side of FarmBot. It allows users to control the device from their web browser. **ITS NOT STABLE. WE ARE IN PRE ALPHA.**
|
||||
|
||||
|
|
|
@ -3,8 +3,10 @@ describe Schedule do
|
|||
describe '#calculate_next_occurence' do
|
||||
let(:schedule) { FactoryGirl.create(:schedule) }
|
||||
|
||||
it 'indicates next_occurrence' do
|
||||
expect(schedule.calculate_next_occurence.day).to eq(Date.today.day)
|
||||
it 'indicates next_occurrence' do\
|
||||
actual = schedule.calculate_next_occurence
|
||||
expected = schedule.schedule.next_occurrence
|
||||
expect(actual).to eq(expected)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require "codeclimate-test-reporter"
|
||||
CodeClimate::TestReporter.start
|
||||
require 'simplecov'
|
||||
#Ignore anything with the word 'spec' in it. No need to test your tests.
|
||||
SimpleCov.start do
|
||||
|
@ -35,4 +37,4 @@ end
|
|||
# Moped was making the test output buffer look ugly every time the database was
|
||||
# purged. These settings stop that.
|
||||
Mongoid.logger.level = Logger::WARN
|
||||
Moped.logger.level = Logger::WARN
|
||||
Moped.logger.level = Logger::WARN
|
||||
|
|
Loading…
Reference in New Issue