Skip to main content

Module test_kind

Module test_kind 

Source
Expand description

A Python or Ruby test’s kind from where it lives, read as the JavaScript runtime reads one (runtime/javascript/provenance.mjs): the nearest directory that names a kind, then the file’s own name, then unit. A Rails app’s Capybara tests live in test/system or spec/features, and its request specs in spec/requests; every one of them was reported as a unit test.

Functions§

from_path
from_tags
The kind a tag names, as @e2e does: a test’s own statement of what it is, which outranks where it lives.
with_tags
A test’s kind: the one a tag names, else the one its path names.