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 functionality for loading setup code #41

Merged
merged 3 commits into from
Dec 9, 2024
Merged

Add functionality for loading setup code #41

merged 3 commits into from
Dec 9, 2024

Conversation

lkdvos
Copy link
Collaborator

@lkdvos lkdvos commented Dec 9, 2024

This is a proposition to allow loading setup code through setup modules in either test/setup/ or examples/setup/. It basically allows any module defined in those folders to be loaded from the tests by using SetupModule.

As a small FYI/question: currently I'm not explicitly blacklisting that folder from the testfiles, and testfiles are still selected on test_*.jl. I'm not sure if this is important to catch.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 6.02%. Comparing base (478dbf0) to head (489179f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #41   +/-   ##
=====================================
  Coverage   6.02%   6.02%           
=====================================
  Files          1       1           
  Lines         83      83           
=====================================
  Hits           5       5           
  Misses        78      78           
Flag Coverage Δ
docs 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Revert "Add functionality for loading setup code"

This reverts commit 5ed825c.

setup file logic
test/runtests.jl Outdated Show resolved Hide resolved
@mtfishman
Copy link
Member

Closes #31, closes #33.

@mtfishman mtfishman merged commit a45c617 into main Dec 9, 2024
12 checks passed
@mtfishman mtfishman deleted the testsetup branch December 9, 2024 22:48
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