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

Tests for plot recipes #37

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Tests for plot recipes #37

wants to merge 11 commits into from

Conversation

DolineanuMircea
Copy link
Contributor

No description provided.

Copy link
Member

@SebastianM-C SebastianM-C left a comment

Choose a reason for hiding this comment

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

Thanks. I think we could make it runnable on CI be checking ENV[CI]

test/runtests.jl Outdated Show resolved Hide resolved
test/runtests.jl Outdated
Lx, y, z = Lx_slice(joinpath(dir, file), λ, 0)
@test length(Lx) > 0
@test length(Lx) == length(y) == length(z)
dir = "/mnt/storage/epoch/Wang-Arefiev2020mod/12mtt_0.8w0_l0_MDO"
Copy link
Member

Choose a reason for hiding this comment

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

We could use the CI env variable to see what path to use. In case we are on CI, we could use the .sdf in the test folder.

@SebastianM-C
Copy link
Member

CI fails because it doesn't have the custom registry added

@SebastianM-C SebastianM-C linked an issue Mar 27, 2021 that may be closed by this pull request
DolineanuMircea and others added 6 commits March 27, 2021 12:14
Co-authored-by: Sebastian Micluța-Câmpeanu <[email protected]>
Add ctp-fpub registry
Update julia version
@test length(Lx) > 0
@test length(Lx) == length(y) == length(z)
dir = "/mnt/storage/epoch/Wang-Arefiev2020mod/12mtt_0.8w0_l0_MDO"
sim = read_simulation(dir)
Copy link
Member

Choose a reason for hiding this comment

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

You need to add using SDFResults for this to work

@SebastianM-C
Copy link
Member

CI should work on linux now. On windows there is a problem with adding the registry and on MacOS there is an issue with PyCall

Copy link
Member

@SebastianM-C SebastianM-C left a comment

Choose a reason for hiding this comment

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

Should be good to go with the suggestion

@SebastianM-C
Copy link
Member

@DolineanuMircea We should create some simple simulations which contain the data that we need (like photons or particle weights) and add it for the tests. It shouldn't be larger than the current sdf in the repo.

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.

Setup CI
2 participants