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

Update unit tests configuration #426

Merged
merged 5 commits into from
Apr 25, 2017
Merged

Conversation

legal90
Copy link
Contributor

@legal90 legal90 commented Apr 23, 2017

Currently we have unit tests failed because of a cheffish gem conflict (is required by chef-dk gem). This PR removes some unnecessary gem dependencies and introduces Chef Delivery CLI for running tests, like Chef Software does that for their cookbooks.

  • Use Berkshelf for dep resolving in ChefSpec.
    Policyfile resolver for ChefSpec requires "chef-dk" gem, which has pretty big dependency tree.
    So, for unit tests it's better just to use Berkshelf.
  • Disable CodeClimate reporter
  • Gemfile: Remove unnecessary gems
  • Use Chef Delivery CLI to run spec and style checks
  • Add "chef_version" to metadata

@legal90 legal90 requested review from johnbellone and Ginja April 23, 2017 16:23
@codecov-io
Copy link

codecov-io commented Apr 23, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@da7f406). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #426   +/-   ##
=========================================
  Coverage          ?   69.46%           
=========================================
  Files             ?        7           
  Lines             ?      357           
  Branches          ?        0           
=========================================
  Hits              ?      248           
  Misses            ?      109           
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update da7f406...0324cfa. Read the comment docs.

legal90 added 5 commits April 23, 2017 20:02
Policyfile resolver for ChefSpec requires "chef-dk" gem, which has pretty big dependency tree.
So, for unit tests it's better just to use Berkshelf.
@legal90
Copy link
Contributor Author

legal90 commented Apr 25, 2017

@johnbellone Do we really need this codecov integration in CI? It doesn't look helpful at the moment, IMO.

@johnbellone
Copy link
Contributor

@legal90 It should be disabled as of right now.

@johnbellone johnbellone merged commit f01a12d into sous-chefs:master Apr 25, 2017
@legal90 legal90 deleted the fix-tests branch April 25, 2017 11:57
@lock
Copy link

lock bot commented Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants