Add codeclimate test reporter
parent
1b81dd5ada
commit
05359e0d72
|
@ -1 +1 @@
|
||||||
2.1.1
|
2.2.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
rvm:
|
rvm:
|
||||||
- 2.1.0
|
- 2.2.0
|
||||||
services:
|
services:
|
||||||
- mongodb
|
- mongodb
|
||||||
notifications:
|
notifications:
|
||||||
|
|
2
Gemfile
2
Gemfile
|
@ -48,5 +48,5 @@ group :test do
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
gem 'launchy' #save_and_open_page while debugging integration tests.
|
gem 'launchy' #save_and_open_page while debugging integration tests.
|
||||||
gem 'capybara-angular' # Avoid race conditions in angular integration tests
|
gem 'capybara-angular' # Avoid race conditions in angular integration tests
|
||||||
gem 'coveralls', require: false
|
gem 'codeclimate-test-reporter', require: nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -96,6 +96,8 @@ GEM
|
||||||
code_analyzer (0.4.5)
|
code_analyzer (0.4.5)
|
||||||
sexp_processor
|
sexp_processor
|
||||||
code_metrics (0.1.3)
|
code_metrics (0.1.3)
|
||||||
|
codeclimate-test-reporter (0.4.7)
|
||||||
|
simplecov (>= 0.7.1, < 1.0.0)
|
||||||
coderay (1.1.0)
|
coderay (1.1.0)
|
||||||
coffee-rails (4.1.0)
|
coffee-rails (4.1.0)
|
||||||
coffee-script (>= 2.2.0)
|
coffee-script (>= 2.2.0)
|
||||||
|
@ -338,6 +340,7 @@ DEPENDENCIES
|
||||||
active_model_serializers (~> 0.8.3)
|
active_model_serializers (~> 0.8.3)
|
||||||
capybara
|
capybara
|
||||||
capybara-angular
|
capybara-angular
|
||||||
|
codeclimate-test-reporter
|
||||||
coffee-rails
|
coffee-rails
|
||||||
devise!
|
devise!
|
||||||
factory_girl_rails
|
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)
|
[![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)
|
[![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.**
|
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
|
describe '#calculate_next_occurence' do
|
||||||
let(:schedule) { FactoryGirl.create(:schedule) }
|
let(:schedule) { FactoryGirl.create(:schedule) }
|
||||||
|
|
||||||
it 'indicates next_occurrence' do
|
it 'indicates next_occurrence' do\
|
||||||
expect(schedule.calculate_next_occurence.day).to eq(Date.today.day)
|
actual = schedule.calculate_next_occurence
|
||||||
|
expected = schedule.schedule.next_occurrence
|
||||||
|
expect(actual).to eq(expected)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require "codeclimate-test-reporter"
|
||||||
|
CodeClimate::TestReporter.start
|
||||||
require 'simplecov'
|
require 'simplecov'
|
||||||
#Ignore anything with the word 'spec' in it. No need to test your tests.
|
#Ignore anything with the word 'spec' in it. No need to test your tests.
|
||||||
SimpleCov.start do
|
SimpleCov.start do
|
||||||
|
|
Loading…
Reference in New Issue