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

Increase coverage of project #934

Open
wants to merge 27 commits into
base: develop
Choose a base branch
from

Conversation

olexandervanzuriak
Copy link
Contributor

@olexandervanzuriak olexandervanzuriak commented Nov 1, 2024

dev #930

Code reviewers

Summary of issue

Increase coverage of project

Summary of change

Testing approach

Run coverage localy

CHECK LIST

  • СI passed
  • Сode coverage >=95%
  • PR is reviewed manually again (to make sure you have 100% ready code)
  • All reviewers agreed to merge the PR
  • I've checked new feature as logged in and logged out user if needed
  • PR meets all conventions

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.71%. Comparing base (6d7e2cd) to head (92c0044).
Report is 16 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #934      +/-   ##
===========================================
+ Coverage    96.73%   98.71%   +1.97%     
===========================================
  Files           73       71       -2     
  Lines         1012     1011       -1     
===========================================
+ Hits           979      998      +19     
+ Misses          33       13      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SleekMutt SleekMutt self-assigned this Nov 1, 2024
@render render bot temporarily deployed to 930-increase-coverage-of-project - zero-waste-staging PR #934 November 5, 2024 14:51 Destroyed
@@ -0,0 +1,7 @@
FactoryBot.define do
factory :authorization do
uid { "unique_uid" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

SecureHex.uid якось так

Comment on lines +144 to +148
product.attributes = {
prices_attributes: [
{ sum: 100 }
]
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

NEVER use local vars in specs

Comment on lines 156 to 158
before do
sign_in user
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

use shared context, it's already present

@@ -22,6 +22,14 @@
end
end

context "redirect to root_url" do
it "is successful" do
get "/"
Copy link
Collaborator

Choose a reason for hiding this comment

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

use route helpers

describe "#perform!" do
context "when preferable is set to 1" do
it "updates other calculators to have preferable set to false" do
service = Calculators::PreferableService.new(preferable: 1, slug: calculator1.slug)
Copy link
Collaborator

Choose a reason for hiding this comment

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

the same thing!

@loqimean loqimean mentioned this pull request Dec 1, 2024
6 tasks
@loqimean loqimean force-pushed the develop branch 4 times, most recently from 03a3caf to 7d2dc81 Compare December 2, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Increase coverage of project
4 participants