Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.24 KB

RUBYSPEC.md

File metadata and controls

55 lines (39 loc) · 1.24 KB

Ruby Spec

Artichoke embeds a copy of ruby/spec. ruby/spec is a set of specifications for testing the Ruby language, core, and standard library packages.

Artichoke enforces that some ruby/specs pass. These specs are tracked in spec-runner/enforced-specs.toml.

MRI Target

Target: MRI Ruby 3.1.2.

Artichoke targets recent MRI Ruby. Compatibility with this target is currently very work in progress. As portions of Ruby Core and Stdlib are implemented in Artichoke, their behavior targets the most recent MRI. There are many spec failures.

Running Specs

You can run these specs for Artichoke crate with the spec-runner crate.

Running the enforced specs

bundle exec rake spec

Running specific specs

To run specific specs, create a custom spec manifest and pass it as the positional argument to the spec-runner binary.

For the uri stdlib package:

[specs.library.uri]
include = "all"
skip = ["parse"]

For Array#each and Array#length:

[specs.core.array]
include = "set"
specs = [
  "each",
  "length",
]