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

Fix test files #11

Merged
merged 2 commits into from
Oct 3, 2019
Merged

Fix test files #11

merged 2 commits into from
Oct 3, 2019

Conversation

ahojukka5
Copy link
Member

@ahojukka5 ahojukka5 commented Sep 30, 2019

I think it would be better that each test file is "standalone" so that you can write just julia test_this.jl and it works. For that reason, @testset should be defined outside of the test file and we should import all necessary packages in each test file. Also, each file should have a license string.

Also, we have a kind of bad experience having "data" inside the test folder, because several unit tests are linking together because of common data. Maybe a better idea is to have a folder with the same name than test file and explicitly containing data that is used in that file.

I think it would be better that each test file is "standalone", so that
you can write just `julia test_this.jl` and it works. For that reason,
`@testset` should be define outside of test file and we should import
all necessary packages in each test file. Also, each file should have
license string.
Each test should have its own additional material that is specifically
dedicated to that test. This prevents us from linking unit tests
together and helps us to understand what material belongs to what test.
@TeroFrondelius TeroFrondelius merged commit 61b85ec into master Oct 3, 2019
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