Skip to content

nrn_add_test_*: improve consistency/docs/speed.#1604

Merged
alexsavulescu merged 2 commits into
masterfrom
olupton/cmake-test-helper
Jan 28, 2022
Merged

nrn_add_test_*: improve consistency/docs/speed.#1604
alexsavulescu merged 2 commits into
masterfrom
olupton/cmake-test-helper

Conversation

@olupton

@olupton olupton commented Jan 27, 2022

Copy link
Copy Markdown
Collaborator

Another spinout from #1597, aiming to manage the diff size there.

  • Change strategy: pass -coreneuron if CoreNEURON is enabled in the
    build, not because someone REQUIRES coreneuron. This means the NEURON
    and CoreNEURON versions of a test will get the same hash, so there are
    fewer builds in total.
  • Be more consistent about which arguments can have default values set
    in nrn_add_test_group that are inherited by nrn_add_test.
  • Update documentation, reduce duplication a little bit.
  • Update cmake-format YAML configuration for how to use these methods.
  • Run cmake-format on files using these methods.
  • Fix typo: olfcatory -> olfactory.

* Change strategy: pass -coreneuron if CoreNEURON is enabled in the
  build, not because someone REQUIRES coreneuron. This means the NEURON
  and CoreNEURON versions of a test will get the same hash, so there are
  fewer builds in total.
* Be more consistent about which arguments can have default values set
  in nrn_add_test_group that are inherited by nrn_add_test.
* Update documentation, reduce duplication a little bit.
* Update cmake-format YAML configuration for how to use these methods.
* Run cmake-format on files using these methods.
* Fix typo: olfcatory -> olfactory.
@codecov-commenter

codecov-commenter commented Jan 27, 2022

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.14%. Comparing base (8571223) to head (5258aec).
⚠️ Report is 3091 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1604      +/-   ##
==========================================
- Coverage   45.16%   45.14%   -0.02%     
==========================================
  Files         551      551              
  Lines      111191   111191              
==========================================
- Hits        50218    50198      -20     
- Misses      60973    60993      +20     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@alexsavulescu alexsavulescu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@alexsavulescu alexsavulescu merged commit 514d0b6 into master Jan 28, 2022
@alexsavulescu alexsavulescu deleted the olupton/cmake-test-helper branch January 28, 2022 08:42
olupton added a commit that referenced this pull request Jan 28, 2022
@olupton olupton mentioned this pull request Jan 28, 2022
alexsavulescu pushed a commit that referenced this pull request Jan 28, 2022
@olupton olupton mentioned this pull request Feb 1, 2022
6 tasks
@alexsavulescu alexsavulescu mentioned this pull request Mar 22, 2022
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants