diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..1652aa4b --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +--- +repo_token: u4kpCzIbPxoMCiPbyFRRs0kSedXKMNwWO diff --git a/README.md b/README.md index 2736b9f6..d0e082ad 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![Circle CI](https://circleci.com/gh/pulibrary/dpul.svg?style=svg)](https://circleci.com/gh/pulibrary/dpul) [![Apache 2.0 License](https://img.shields.io/badge/license-Apache%202.0-blue.svg?style=plastic)](./LICENSE) +[![Coverage Status](https://coveralls.io/repos/github/pulibrary/dpul/badge.svg?branch=main)](https://coveralls.io/github/pulibrary/dpul?branch=main) A [Spotlight](https://github.com/sul-dlss/spotlight) application for Princeton University Library, formerly known as Pomegranate, but renamed to the offical brand: Digital PUL. diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9b990170..6b36900c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,6 +6,9 @@ require 'capybara-screenshot/rspec' require "selenium-webdriver" require 'webmock/rspec' +require 'coveralls' + +Coveralls.wear! if ENV['CI'] require 'coveralls'