Skip to content
This repository was archived by the owner on Sep 19, 2019. It is now read-only.

Comments

Improve coverage#21

Merged
ChristianRimondi merged 5 commits intomasterfrom
improve-coverage
Sep 25, 2018
Merged

Improve coverage#21
ChristianRimondi merged 5 commits intomasterfrom
improve-coverage

Conversation

@kennyadsl
Copy link
Member

@kennyadsl kennyadsl commented Sep 20, 2018

This PR adds SimpleCov to check the coverage of the project. It also performs some steps to improve it.

Main things done are:

  • removed Spree::Admin::OrdersController#shipwire method: it was not working and out of date, since now shipwire is connected via Spree::Shipment model
  • removed an unclear extension to Spree::ReturnAuthorizationsController that was not tested and probably useless
  • remove an untested/useless method on Spree::Variant

NOTE

Coverage is still quite low on app/models/shipwire since there are a lot of things untested since we are waiting for billr578/shipwire#6 to be merged (this won't happen, even because that PR is untested itself).

Ci is failing only on Solidus 2.3 and 2.4 due to a factory_girl issue that will be handled on Solidus

it makes no sense anymore since shipwire is on shipment now. Also it
was not tested and not working anymore
It does not seem to really do something and it's not tested
It's not used anymore and it's actually doing nothing but
a call to the api that would list the stock for that SKU:

https://github.com/nebulab/shipwire/blob/a548d9733ba67906f3a4e1e6f18119da843c94e1/lib/shipwire/stock.rb#L3-L5
Copy link
Member

@ChristianRimondi ChristianRimondi left a comment

Choose a reason for hiding this comment

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

👍

@ChristianRimondi ChristianRimondi merged commit ad42e96 into master Sep 25, 2018
@ChristianRimondi ChristianRimondi deleted the improve-coverage branch September 25, 2018 09:55
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.

2 participants