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

Silence two tests #1245

Merged
merged 2 commits into from
Jan 29, 2023
Merged

Silence two tests #1245

merged 2 commits into from
Jan 29, 2023

Conversation

eddelbuettel
Copy link
Member

This trivial PR makes one test (that otherwise barks on stdout) conditional on the env var making some tests quiet. As we use system() the stdout capture of tinytest does not work for us.

Checklist

  • Code compiles correctly
  • R CMD check still passes all tests
  • Prefereably, new tests were added which fail without the change
  • Document the changes by file in ChangeLog

@Enchufa2
Copy link
Member

Guilty! That test is not doing what I expected... I can fix it instead of silencing it. May I?

@eddelbuettel
Copy link
Member Author

eddelbuettel commented Jan 29, 2023

Yes, just use the branch (and update/alter what I did as needed). I poked around with expect_* variants but couldn't make it better.

@Enchufa2 Enchufa2 removed their request for review January 29, 2023 17:51
@Enchufa2
Copy link
Member

Now it's me who requests your review, but GitHub doesn't allow me to add you, I suppose because you started this PR. :)


* inst/tinytest/test_xptr.R: Condition one test writing to stdout
on test verbosity environment variable being set
* inst/tinytest/test_xptr.R: Fix a couple of tests writing to stdout
Copy link
Member Author

Choose a reason for hiding this comment

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

'A couple' ? 'A pair' 😜

Copy link
Member

Choose a reason for hiding this comment

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

They're married by their purpose. :)

Copy link
Member Author

@eddelbuettel eddelbuettel left a comment

Choose a reason for hiding this comment

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

LGTM!

@eddelbuettel eddelbuettel changed the title Condition one test with stdout on verbose test var Silence two tests Jan 29, 2023
@eddelbuettel eddelbuettel merged commit 8d82ab9 into master Jan 29, 2023
@eddelbuettel eddelbuettel deleted the feature/silence_test branch February 2, 2023 15:14
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.

None yet

2 participants