Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lay groundwork for system specs #956

Merged
merged 4 commits into from
Jun 18, 2021
Merged

Lay groundwork for system specs #956

merged 4 commits into from
Jun 18, 2021

Conversation

solebared
Copy link
Collaborator

@solebared solebared commented May 8, 2021

Why

We've been needing some system-level test coverage for a while now. This PR sets up the minimal groundwork needed to start writing them.

What

  • Add necessary gems
  • Add first, nominal system spec
  • Configure rspec to not run system specs with non-system specs. Eg, invoking bin/rspec will exclude all system specs; to run them, all requested specs must be system specs, eg bin/rspec spec/system.
  • Configure CirclCI to run system specs as a separate job
  • Provide ability to run specs with 'headless_chrome' based on an env. variable.

Next Steps

With these changes, our .circleci/config.yml is in need of some refactoring; will follow up with a PR to address this.

Outstanding Questions, Concerns and Other Notes

?

Pre-Merge Checklist

  • Security & accessibility are not impacted
  • Tests have been added, or an explanation has been given why the features cannot be tested
  • Documentation and comments have been added to the codebase where required
  • Entry added to CHANGELOG.md if appropriate
  • Outstanding questions and concerns have been resolved
  • Any next steps have been turned into Issues or Discussions as appropriate

@@ -1,51 +1,49 @@
docker_image: &docker_image
image: circleci/ruby:2.7.2-node

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A lot of the changes in this file are slight renames of commands and jobs. The significant additions are the rspec_system command system_specs job.

@solebared solebared mentioned this pull request May 8, 2021
14 tasks
Also support switiching to headless_chrome based on env variable.
Also refactors .circleci/config.yml:
- rename some commands, steps, jobs, workflows for consistency and to
  reduce ambiguity between the different types of elements
- consolidatees all tmp files under /tmp
@solebared solebared merged commit c955d7d into main Jun 18, 2021
@solebared solebared deleted the system-specs branch June 18, 2021 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants