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

Mark allocation tests broken in julia 1.4 #117

Merged
merged 4 commits into from
Jul 17, 2020
Merged

Mark allocation tests broken in julia 1.4 #117

merged 4 commits into from
Jul 17, 2020

Conversation

mzgubic
Copy link
Collaborator

@mzgubic mzgubic commented Jul 17, 2020

Relates to tests in #115 .

The using SparseArrays makes sure the tests in name_operations.jl can run standalone. Sorry for including it here, added this commit earlier and it slipped in here.

@mzgubic mzgubic requested a review from oxinabox July 17, 2020 12:55
Comment on lines 1 to 2
using SparseArrays

Copy link
Member

@oxinabox oxinabox Jul 17, 2020

Choose a reason for hiding this comment

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

I don't think this is enough to make this able to run stand-alone.
since it also would need using NamedDims and using Test at least.

In general to run a subset of tests, easiest is to comment out the includes in runtests.jl as that means test-time dependencies still get installed.

Suggested change
using SparseArrays

Copy link
Member

Choose a reason for hiding this comment

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

Though this package does seem to try to make files able to run stand alone
So maybe better to finish the job:

Suggested change
using SparseArrays
using NamedDims
using SparseArrays
using Test

Copy link
Collaborator Author

@mzgubic mzgubic Jul 17, 2020

Choose a reason for hiding this comment

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

Ah, sorry, I didn't express myself clearly: What I meant was to comment out the other includes as you say.

I guess best practice would be to put the using SparseArrays to the runtests.jl? And in this case do you suggest above in order to allow running include("test/wrapper_array.jl")?

Copy link
Member

Choose a reason for hiding this comment

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

I guess best practice would be to put the using SparseArrays to the runtests.jl

Yes

And in this case do you suggest above in order to allow running include("test/wrapper_array.jl")?

Probably not but you can.
This package is still doing it in many places so you can do that, but it is a bit of an aberation and shouldn't be.

test/wrapper_array.jl Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   89.06%   89.06%           
=======================================
  Files           9        9           
  Lines         311      311           
=======================================
  Hits          277      277           
  Misses         34       34           

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 f0308f0...9e85909. Read the comment docs.

Copy link
Member

@oxinabox oxinabox left a comment

Choose a reason for hiding this comment

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

Merge once you sorted out the using SparseArrays thing.

@mzgubic mzgubic merged commit 56055d7 into master Jul 17, 2020
@mzgubic mzgubic deleted the mz/test branch August 6, 2020 11:09
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.

2 participants