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

Add code coverage report uploads to codecove.io #126

Merged
merged 1 commit into from
Nov 17, 2022
Merged

Add code coverage report uploads to codecove.io #126

merged 1 commit into from
Nov 17, 2022

Conversation

alexskr
Copy link
Member

@alexskr alexskr commented Nov 17, 2022

No description provided.

@syphax-bouazzouni
Copy link

Hi @alexskr ,

did you fix the tests issues ?

@codecov-commenter
Copy link

Codecov Report

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

@@            Coverage Diff             @@
##             develop     #126   +/-   ##
==========================================
  Coverage           ?   85.27%           
==========================================
  Files              ?       20           
  Lines              ?     2037           
  Branches           ?        0           
==========================================
  Hits               ?     1737           
  Misses             ?      300           
  Partials           ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@alexskr
Copy link
Member Author

alexskr commented Nov 17, 2022

Hi @syphax-bouazzouni,
@stdotjohn made some progress so unit tests now pass

@alexskr alexskr merged commit 204cecf into develop Nov 17, 2022
@syphax-bouazzouni
Copy link

Hi @syphax-bouazzouni, @stdotjohn made some progress so unit tests now pass

Ah ok great,
thanks @stdotjohn and @alexskr

@alexskr
Copy link
Member Author

alexskr commented Nov 17, 2022

We still have a bunch of disabled tests but at least there is some progress

@ncbo-deployer
Copy link

ncbo-deployer commented Nov 17, 2022 via email

@syphax-bouazzouni
Copy link

A remark, see 0e09816#commitcomment-90304626

Hi @stdotjohn ,

I agree with your problem discription "the classes constraint was not covered", but i don't think that disabling it is the fix (and may break the ontologies_linked_data models).

For information also, here the constrain :class for an attribute means it will be instanciate as a Class resource (owl:Class , not the ruby class)

This behavior is done the else state of the switch

else
model_range = opt.respond_to?(:shape_attribute) ? opt : Goo.model_by_name(opt)
if model_range and !value.nil?
values = value.kind_of?(Array) ? value : [value]
values.each do |v|
if (!v.kind_of?(model_range)) && !(v.respond_to?(:klass) && v[:klass] == model_range)
add_error(model_range.model_name, errors_by_opt,
"`#{attr}` contains values that are not instance of `#{model_range.model_name}`")
else
if !v.respond_to?(:klass) && !v.persistent?
add_error(model_range.model_name, errors_by_opt,
"`#{attr}` contains non persistent models. It will not save.")
end
end
end
end

@mdorf can give a second review of this

@alexskr alexskr deleted the codecov branch December 1, 2022 23:53
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.

4 participants