-
Notifications
You must be signed in to change notification settings - Fork 37
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
Consume part of SUMT
?
#109
Comments
First off, please don't consider SUMT to be equivalent to "I don't like testup-2". I started by revising some of the tests using testup, and, given my background with testing, I just wanted to click in the console, hit the up arrow, and repeat the tests. So, rather than figure out all of testup, I just started from scratch, It may not be trivial, but I'm willing to work on it (combining the two). As an aside, I'd appreciate if you checked the temp file issue, and whether the UDP is working for you (and on MacOS if you can). I might also suggest that someone from Trimble could run Finally, as to windows, I assume you have some stand-alone Ruby versions. Maybe you should start running trunk? Might as well get familiar with MSYS2, given that's it the future of Windows Ruby. 95% of the work I've done across the whole Ruby eco-system I've done with trunk. The doc site has always been updated using trunk. Etc, etc... Never asked, are you more a windows type or a MacOS type? |
I run standalone Ruby from one of the Windows Installer builds. The version vary from computer to computer. I often have had matching standalone version to the versions used in Ruby - in order to build gems etc. And also to check if issues exist only in SU Ruby or also in standalone Ruby. When we get to upgrading Ruby in SU we will have to get familiar with MSYS2. I'm mainly a Windows guy. I boot into my mac partition only briefly when needed. |
Re Ruby & Gems (as long as you mentioned them), I've got a lot of Ruby versions on my drive(s). From 1.9.3 forward, and hundreds of trunk builds (most are zipped). Anytime I use one, I add a text file to the base directory with the PATH for the build. Ruby-loco trunk has been build over 500 times on Appveyor... Re Gems, since consecutive SU versions often have the same Ruby version, being able to install gems with the '--user-install' option is helpful, since one doesn't need the same gem installed in two places for use with '17 & '18. I'll get my gem stuff together and start a repo with SU stuff, a good readme or wiki, and explain how to set up SU & RubyGems so --user-install gems can be used. I'll also explain how to update RubyGems, as updates are often security related. FYI, RubyGems includes its own certs (*.pem) for its SSL/TLS connections. Back to merging. Could we change testup-2 to be more 'load-on-demand'? I set up SUMT that way, and I think it would appreciated by devs, as testing code/plugins are certainly helpful to have 'installed', but they shouldn't load until they're used... Haven't given it that much thought, busy with some 'Ruby world' stuff. One thing that might work, have one namespace for test related things, one namespace for 'GUI', and one namespace for 'Console'. If that will work, then we/you just need to determine how to merge the test related differences... |
Can you elaborate a bit on the load-on-demand nature of SUMT? Btw, I'll be doing some heavy changes to TestUp the next couple of weeks. You probably want to avoid doing big changes right now - otherwise troublesome conflicts will probably occur.
Yea, cleaning up the source of TestUp is also on the plate. Expect to see things moving around. TestUp2 was created in 2013 in somewhat of a rush to create a new test runner compatible with Ruby 2.0. Since then more stuff have been thrown at it and it's time to pay back some of the code depth. |
I've got both TestUp & SUMT set up as extensions. Before performing any operations, below is a simple inspection of their namespaces (edited for width). More items (loaded classes/modules) would also appear in the Minitest namespace.
Or, from
|
Gotcha. That's actually something I've been thinking of in general for extensions. Some pattern to load extensions on-demand to keep SU startup times low. |
Another thing I'd like to see encouraged (and I'd don't recall what testup-2 does) is not adding to |
That's a check in TestUp makes one modification to testup-2/src/testup/minitest_setup.rb Lines 61 to 71 in a407d39
I didn't find any other way to make that work. |
The following methods/code handles it in SUMT: and the code at the end of the reporters: The code in MT works for all gems that are plugins, but since we know what we want to load... This also allows loading & unloading. |
SketchUp/api-issue-tracker#61
The text was updated successfully, but these errors were encountered: