0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 01:57:29 +08:00
discourse/spec/support
Alan Guo Xiang Tan 71a6dd9674
DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632)
Adds `RspecPerformanceFormatter`, an RSpec formatter that captures the
SQL queries, Redis commands, and outbound network calls each example
performs and emits them as NDJSON with one object per test. It gives an
AI model (or a developer) concrete per-test context for spotting N+1s,
redundant queries, or unexpected outbound calls. Off unless the
formatter is selected, so normal runs and production are unaffected.
Works with both `bin/rspec` and `bin/turbo_rspec`.
2026-06-16 09:47:54 +08:00
..
locales
matchers DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
shared_contexts UX: better rich editor placeholder for non-image and image uploads (#39102) 2026-05-20 16:48:51 -03:00
shared_examples FIX: Resolve all of a deleted spammer's reviewables (#40780) 2026-06-15 13:34:15 +08:00
system DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
auth_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
backups_helpers.rb
bookmarkable_helper.rb
ci.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
concurrency.rb
diagnostics_helper.rb DEV: track client ids published to message bus (#32878) 2025-05-23 14:23:50 +10:00
discourse_connect_support_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
discourse_event_helper.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
discourse_workflows_data_table_helpers.rb FEATURE: discourse-workflows (#40374) 2026-05-28 19:44:50 +02:00
fake_bookmark_hashtag_data_source.rb
fake_logger.rb FEATURE: Automatic promotion of upcoming changes (#36211) 2025-12-08 15:49:34 +10:00
fake_s3.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
fast_image_helpers.rb
final_destination_helper.rb
fixture_helpers.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
i18n_helpers.rb
integration_helpers.rb DEV: Finish renaming secure_session to server_session 2025-09-23 10:35:02 +02:00
logging_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
message_bus_test_sync.rb DEV: Consistently wait for message_bus in system specs (#40076) 2026-06-02 22:06:20 +02:00
method_profiler_itemizer.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
minio.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
mock_git_importer.rb DEV: Fix assigned but unused variable Prism warnings (#39436) 2026-04-22 12:42:14 +02:00
mocks.rb DEV: Extract more concerns from rails_helper to own files (#40536) 2026-06-03 15:20:36 +02:00
multisite_helpers.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
nested_replies_helpers.rb FEATURE: First iteration of nested replies (#38888) 2026-04-16 08:06:44 -05:00
omniauth_helpers.rb
onebox_helpers.rb DEV: Introduce core features system specs for plugins 2025-03-27 12:12:01 +01:00
perf_capture.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
prefabrication.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
rspec_performance_formatter.rb DEV: Add per-test SQL/Redis/network capture RSpec formatter (#40632) 2026-06-16 09:47:54 +08:00
sample_plugin_site_settings.yml FIX: type: objects uploads should be stored as IDs (#40178) 2026-05-21 13:45:27 -03:00
server_error_tracking.rb DEV: Extract some concerns from rails_helper to own files (#40505) 2026-06-03 11:37:37 +02:00
sidekiq_helpers.rb
site_settings_helpers.rb DEV: Fix a state leak in specs (#40658) 2026-06-08 23:57:44 +02:00
site_settings_provider.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
suite_setup.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
system_helpers.rb DEV: to-markdown prosemirror HTML parsing (#35563) 2026-05-29 18:14:32 -03:00
test_second_factor_action.rb
test_setup.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
theme_screenshot_marker.rb DEV: Add theme screenshots system spec and skill (#39426) 2026-05-05 09:36:29 -04:00
time_helpers.rb DEV: Finish extracting rails spec helpers (#40552) 2026-06-04 14:11:14 +02:00
topic_guardian_can_see_consistency_check.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
uploads_helpers.rb DEV: Refactor test-specific setting overrides into rails_helper.rb (#35594) 2025-10-27 10:14:56 +00:00
user_api_key_device_auth_spec_helpers.rb FEATURE: User API key device authorization flow (#40189) 2026-06-10 16:09:44 -04:00
webauthn_integration_helpers.rb