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

improve test coverage #227

Merged
merged 7 commits into from
Oct 23, 2023
Merged

Conversation

wxtim
Copy link
Member

@wxtim wxtim commented May 5, 2023

Partial Response to #157, and partial replacement of #196

The aim from my point of view is to separate easy small changes from the need to refactor subprocess tests more thoroughly to work in a manner similar to Cylc's integration tests.

My checks on coverage suggest that this brings coverage from just over 95% to just under 99%

Check List

  • I have read CONTRIBUTING.md and added my name as a Code Contributor.
  • Contains logically grouped changes (else tidy your branch by rebase).
  • Does not contain off-topic changes (use other PRs for other changes).
  • Applied any dependency changes to both setup.cfg (and conda-environment.yml if present).
  • This a change to tests which should not require documentation.

@wxtim wxtim self-assigned this May 5, 2023
Copy link
Member

@MetRonnie MetRonnie left a comment

Choose a reason for hiding this comment

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

Partial review

cylc/rose/entry_points.py Outdated Show resolved Hide resolved
cylc/rose/entry_points.py Show resolved Hide resolved
cylc/rose/entry_points.py Outdated Show resolved Hide resolved
cylc/rose/entry_points.py Show resolved Hide resolved
@wxtim wxtim marked this pull request as draft July 24, 2023 09:44
cylc/rose/entry_points.py Outdated Show resolved Hide resolved
@wxtim wxtim marked this pull request as ready for review August 22, 2023 10:14
@wxtim wxtim requested a review from MetRonnie August 22, 2023 10:14
tests/unit/test_rose_opts.py Outdated Show resolved Hide resolved
cylc/rose/utilities.py Show resolved Hide resolved
assert result == ('foo', '', '', '', 'foo')


def test_process_multiple_auto_opts(monkeypatch, get_StemRunner):
Copy link
Member

Choose a reason for hiding this comment

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

Docstring?

Copy link
Member Author

@wxtim wxtim Oct 17, 2023

Choose a reason for hiding this comment

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

I just test the code as is, it took me a few minutes to work out what it was trying to do. Now I don't like what it's trying to do: It doesn't raise an error if there is a mistake in the Rose user/global config.

I'm inclined to set up a new issue for that, what do you think?

tests/unit/test_rose_stem_units.py Outdated Show resolved Hide resolved
@MetRonnie MetRonnie added this to the 1.4.0 milestone Oct 17, 2023
@wxtim wxtim requested a review from MetRonnie October 17, 2023 15:48
@wxtim wxtim merged commit 08d8e11 into cylc:master Oct 23, 2023
7 checks passed
@wxtim wxtim deleted the coverage.remove_unused_lines branch October 23, 2023 09:19
wxtim added a commit to wxtim/cylc-rose that referenced this pull request Oct 24, 2023
Improve test coverage
Co-authored-by: Oliver Sanders <[email protected]>
wxtim added a commit to wxtim/cylc-rose that referenced this pull request Oct 24, 2023
Improve test coverage
Co-authored-by: Oliver Sanders <[email protected]>
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.

3 participants