Skip to content

Improve remote dev smoke test script and specs

Chad Woolley requested to merge caw-improve-smoke-test-suite-and-specs into master

Issue: Improve remote dev smoke test script and specs (#451154 - closed)

What does this MR do and why?

  • Improves remote dev smoke test script:
    • introduce functions
    • introduce ENV vars to selectively run steps
    • introduce step for fast specs
    • improve messages
  • Renames remote dev version of fast_spec_helper to rd_fast_spec_helper to distinguish it and help with selecting only fast specs
  • Adds rd_fast tag to tests which can run fast spec suite
  • Adds check to ensure all fast tests have that tag
  • Adds back one working feature specs

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  • Run SKIP_JEST=1 SKIP_RUBOCOP=1 SKIP_RAILS=1 SKIP_FEATURE=1 scripts/remote_development/run-smoke-test-suite.sh to only run fast domain-logic specs. See how fast it runs! Note that you must not have spring running or you will get an error.
  • Run scripts/remote_development/run-smoke-test-suite.sh
  • Run SKIP_JEST=1 SKIP_RUBOCOP=1 SKIP_RAILS=1 SKIP_FAST=1 scripts/remote_development/run-smoke-test-suite.sh to only run the newly-enabled feature spec
Edited by Chad Woolley

Merge request reports