Skip to main content

Module test_detection

Module test_detection 

Source
Expand description

Ruby test-file recognition and test-assertion smell detection.

analyzer/ruby/tests.rs in brokk-bifrost-analysis keeps the empty impl TestDetectionProvider for RubyAnalyzer and the analyzer-bound fixture suites; everything here is a pure function of a parsed file.

Functionsยง

detect_ruby_test_assertion_smells
detect_ruby_test_assertion_smells_limited
ruby_contains_tests
Heuristic detection of Ruby test files across the common frameworks: RSpec, Minitest, and Test::Unit. Recognition is entirely parser-backed so assertion-like text in comments and strings cannot classify a file as a test.