Repository navigation
v0.2.10
What's Changed
- Bump version to 0.2.9 by @benjaminwood in #68
- Record test maps with a native tracer, send file-hash snapshots by @benjaminwood in #70
Full Changelog: v0.2.9...v0.2.10
CHANGELOG
- Add test maps for test selection. When a suite enables selection, the server asks runners for a content-hash snapshot of the repository (
git ls-tree, plus hashes of uncommitted edits to tracked files) with the manifest, and on recording runs each test is traced and a fragment uploaded to/test_maps/fragmentsafter the run closes. Runners advertisetest_map=record|select|0. - Add the optional
selective_tracernative extension: global line/call/block and allocation hooks that record the project files each test executes, on every thread. Without it (no compiler, unsupported Ruby) the runner can still run selected subsets but can't record. - Add
SELECTIVE_TEST_MAP_RECORD=1(force this run to record a map) andSELECTIVE_TEST_MAP_DISABLE=1(take no part in selection), plusSELECTIVE_TEST_MAP_IGNORE(extra comma-separated directories the tracer ignores). - Test map fragments are uploaded from a child Ruby process without Bundler's environment, so WebMock, VCR and other HTTP stubs loaded by the suite can't block the upload.
- Installing the gem now needs
make, since it carries a native extension. The tracer is compiled once while configuring, and any failure there (no C compiler, unsupported Ruby, compile error) installs without it rather than failing the install. selective execno longer requires the CI environment variables: the runner id and logger are resolved when a run starts, not in the constructor.- Fix the Gemfile's sibling-repo check to resolve relative to the Gemfile instead of the current directory.
Published to rubygems.org: https://rubygems.org/gems/selective-ruby-core/versions/0.2.10