-
Notifications
You must be signed in to change notification settings - Fork 63
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
Docs on running specs needed #269
Comments
I'll try to answer your questions here, then we can think about how to best document some of these things...
Yes!
That might be possible, but I find we often have to comment out not-yet-passing bits of the spec, which would not be possible if it were a submodule. I hope at some point in the future we can just link to the specs as-is without changes, but we're not there yet. 😅 Even in your PR, we had to disable the
Yes, that's not clear, but yes (we only run a subset of known working tests locally). We run all the specs on CI so we can get a nightly test report, which is shown on natalie-lang.org. Those are not meant to be run locally. Only the specs in
Yep! You can just run the ruby file like you would another ruby script: bin/natalie spec/core/string/strip_spec.rb There is a little script helper if you want to run more than one file at a time: bin/natalie test/runner.rb spec/core/string/*strip* Lastly, you can run
Yes. Since you were running the
Normally you would not be running all the specs like that, so you wouldn't need that dependency. But just in case your curious, it's specified in the Gemfile here, which you would have to install with the command: bundle install --with run_all_specs ...since that group is optional. Anyway! I suspect you didn't actually want all these answers for yourself, but rather for posterity and to help others not have to go through the pain that you did. 😂 I will add some help to the readme for how to get started with specs, rather than leave poor beginners to fend for themselves. Thanks linus! 🤗 |
All questions answered, closing. Will work on some more things with this new knowledge 😄 Thanks again! |
I think we should rename |
Disclaimer: I'm a complete ruby noob :)
Just wrote my first couple of lines of code for natalie & found several issues (#195, #201, #217) referring to specs. While I did manage to get it to run some tests, the whole process was & still is really unclear to me, as I couldn't find any docs.
Specifically:
https://github.com/seven1m/natalie/blob/d012e0f86304f4d1282dc77f6d588c49e31ecc40/.github/workflows/run_all_specs.yml#L21-L29
https://github.com/seven1m/natalie/blob/bc22ef43ae1200eb57f33ac7459b3e3c9209f48f/spec/support/ruby_spec_runner.rb#L20
bundle exec ruby spec/support/ruby_spec_runner.rb
) failed with:bundle add concurrent-ruby
didn't fix that.gem install concurrent-ruby
+ruby spec/support/ruby_spec_runner.rb
worked however. Again, no idea what I'm doing. :)Thanks!
The text was updated successfully, but these errors were encountered: