Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the test suite #143

Merged
merged 2 commits into from
Oct 30, 2018
Merged

Improve the test suite #143

merged 2 commits into from
Oct 30, 2018

Conversation

joshcanhelp
Copy link
Contributor

Changes

  • Remove full ENV var
  • Add test Rake task
  • Combine all spec helper files
  • Install Codecov

@@ -14,25 +29,30 @@
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] }
end

mode = ENV['MODE'] || 'unit'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the test mode now that we're using VCR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VCR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

def entity_suffix
'rubytest'
end

puts "Entity suffix is #{entity_suffix}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving test mode-specific code

Gemfile Outdated
@@ -13,4 +13,5 @@ end
group :test do
gem 'webmock', require: false
gem 'vcr', require: false
gem 'codecov', :require => false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the arrow?

@@ -6,6 +20,7 @@

require 'vcr'
VCR.configure do |config|
# Uncomment the line below to record new cassettes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does that mean? should it be clarified?

@@ -14,25 +29,30 @@
config.filter_sensitive_data('API_TOKEN') { ENV['MASTER_JWT'] }
end

mode = ENV['MODE'] || 'unit'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VCR?

Dir['./lib/**/*.rb'].each { |f| require f }
Dir['./spec/support/**/*.rb'].each { |f| require f }
Dir['./spec/support/*.rb'].each { |f| require f }

require 'rspec'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cosmetic but, shouldn't this be on the top of the file instead of flying here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually no ... config.include Credentials needs to happen after the file requires

@auth0 auth0 deleted a comment from lbalmaceda Oct 26, 2018
@joshcanhelp joshcanhelp merged commit 7349a41 into master Oct 30, 2018
@joshcanhelp joshcanhelp deleted the improve-test-suite branch December 3, 2018 21:53
@joshcanhelp joshcanhelp added this to the v4.6.0 milestone Dec 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants