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

Replacing testthat with tinytest (Issue #136) #137

Merged
merged 53 commits into from
Aug 27, 2023
Merged

Conversation

aadler
Copy link
Contributor

@aadler aadler commented Aug 24, 2023

The testthat framework was repalced by tinytest and a few extra tests were written to ensure we stay at > 95% coverage. Code and documentation were linted to become more consistent. Not completely, because I am not as comfortable with roxygen (I write pure .Rd for my packages) and I tried to err on the side of caution. Vignette was gently updated (e.g. Github, not Sourceforge 😄 ). It passes all unit tests and checks on my end (except pkgedown), so I think it's ready for merging.

aadler added 30 commits August 23, 2023 21:06
…n CRAN either. So match to some of the message instead of all.
2) Remove mention of testtthat runner from init_nlopt.c and nlopt.h

3) Add dummy.cpp to trigger g++ linking for libnlopt

4) Remove testthat from DESCRIPTION
2) Clean up Description a bit now that we are in R 4.3+
…to trigger tests. In general, most of these errors are caught in nloptr.R and never get to is.nloptr.
Copy link
Contributor

@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.

This is a bad PR in the sense that those of use working professionally with GitHub prefer a seperation of concerns between unrelated issues.

You did a momentous job here switching to tinytest. It gets completely blurred by all these nonsense whitespace changes from lintr (a package I am not on friendly terms with because I find it way too invasive, and tend to disagree with a number of its default rules more or less on principle [default line length? seriously? like in 1992 when we were on 80x25 screens?]. Anyway...

(The key is the tests pass, and if @astamm is cool with it all I am certainly not objecting. But I don't have the time right to dive into a 93 file PR that is very distracting because a million changes are in fact just whitespace ...)

@aadler
Copy link
Contributor Author

aadler commented Aug 25, 2023

Hi, @eddelbuettel. No arguments, per se. I have bad habits from being predominantly a solo developer for the past 25 years, and need to work harder on creating better submissions for others, so I appreciate the constructive criticism.

So as to assuage my ego just a tad, there was some method to my madness 😁 . When it came to changing the the code I did not write, namely the .R files written mainly by @jyypma and some by @hwborchers, I was afraid of making a breaking change, so I intentionally placed each one in its own commit in case I needed to backtrack. The files I wrote I committed in one fell swoop. Of course, that was the one in which I made an error, but that's just the universe keeping me in my place 😄 .

But yes, that clearly should have been a second PR, and the vignette update a third. Thank you!

@eddelbuettel
Copy link
Contributor

Yep. Small(er) iterations tends to be better. But I also sit on more feedback doing these kinds of things all day long.

Again, first and and foremost thank you for carrying the conversion through. I am a happy (and early) adopter of tinytest and like it a lot.

@astamm
Copy link
Owner

astamm commented Aug 25, 2023

I say we keep in mind to separate things in more smaller PRs from now on. If it is ok with everyone, I'll just merge this one as it is. Very nice work @aadler and again thank you!

@astamm astamm merged commit 6c835ef into astamm:master Aug 27, 2023
@astamm astamm mentioned this pull request Aug 27, 2023
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