Comments (6)
Agreed in general.
Although I think it may be OK to fix specific issues rather than to address the 192 cases when probably most of them work fine in practice.
IIRC some of the default gems did not have a VERSION constant (hopefully not a problem anymore).
their own versions which are unrelated to
RUBY_VERSION
.
That's not completely true, ruby/spec is meant to be run with the default gems of a Ruby release, and so e.g. default versions are always >= for a newer Ruby release (in version ordering).
from spec.
- Many of the 192 cases are because of the promotion to default gems (matrix, net-ftp, prime).
- io-wait guards are because of Ruby's API addtions.
- socket is not gemified, and should be excluded from the list.
from spec.
As for set/pretty_print_spec.rb (and set/pretty_print_cycle_spec.rb), should not test internal methods, I think.
from spec.
Many of the 192 cases are because of the promotion to default gems (matrix, net-ftp, prime).
Off topic: If many of the default gem specs exist because we wrote them when it was not a gem, would it make sense to migrate such tests to the gem repository (and possibly hook the tests from the ruby/spec suite)?
Currently, ruby/spec is not executed in default gem repositories, and changes in such repositories often result in ruby/spec failures in ruby/ruby even if the gem's CI is passing (because it doesn't run ruby/spec). Unlike test-all
, since other Ruby implementations can easily run the tests of gems, it seems redundant to have two different test suites once gemified.
from spec.
Yes,we should probably move the specs of extracted stdlibs to their repo. I think it's a lot of work though. And it would need mspec
releases (currently there is no compatibility needed in mspec), and we don't own the mspec
gem (could be ruby-mspec
).
from spec.
Yes,we should probably move the specs of extracted stdlibs to their repo.
😍
I think it's a lot of work though.
I can migrate ERB as a starter and encourage other active folks to follow it. It never ends unless we start it 🙂
we don't own the
mspec
gem
I wonder if @brixen is open to adding you as a gem owner?
could be
ruby-mspec
Agreed.
from spec.
Related Issues (20)
- Write specs for new Ruby 3.2 features and changes HOT 7
- Checks for exact values in core/random/bytes HOT 1
- Ubuntu jammy s390x: Test failures HOT 3
- IPSocket.getaddress with unknown host returnng IP address HOT 16
- Where should `Time#to_date` and `Time#to_datetime` be? HOT 5
- Process constant values are platform-dependent on Linux
- Using eval for expectations prevents testing other execution modes HOT 2
- core/class/descendants_spec relying on a particular GC behavior HOT 1
- Please revert #dbff2dc 'Add Class#descendants' HOT 5
- Write specs for new Ruby 3.1 features and changes HOT 9
- TCPSocket specs hang if client doesn't connect HOT 4
- Zlib.crc32 calculates CRC checksum for string and initial CRC value FAILED HOT 9
- Better testing for finalization HOT 2
- Failures with tzdata-2022b HOT 5
- Link to repository that no longer exists in README.md
- [Notice, please feel free to close it] Natalie HOT 1
- Safe navigation for square brackets HOT 2
- Cleanup proc_spec.rb and block_spec.rb HOT 1
- Extend the tests in regexp/inspect_spec with over escaping combined with character classes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spec.