Skip to content

E2E: Add possibility to run tests with 'bundle exec rspec' command

Andrejs Cunskis requested to merge acunskis-extract-test-setup into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Allows running E2E specs via simple bundle exec rspec ${spec_name} command.

  • Adds a custom rake task to execute tests with knapsack runner without the bin/qa script
  • Extracts gitlab address scenario attribute setup in to a separate class to support both bin/qa and bundle exec rspec
  • Properly decouples framework unit tests and e2e test themselves. spec folder now contains only unit test related code

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  • start gdk
  • run bundle exec rspec "spec_name" from qa folder

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Part of: https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1034

Edited by Andrejs Cunskis

Merge request reports

Loading