Skip to content

Setup vscode tasks for rspec#793

Open
zetter-rpf wants to merge 1 commit intomainfrom
add-tasks-for-tests
Open

Setup vscode tasks for rspec#793
zetter-rpf wants to merge 1 commit intomainfrom
add-tasks-for-tests

Conversation

@zetter-rpf
Copy link
Copy Markdown
Contributor

@zetter-rpf zetter-rpf commented Apr 27, 2026

Set up tasks to make it easier to run rspec, similar to RaspberryPiFoundation/editor-ui#1344 and https://github.com/RaspberryPiFoundation/editor-standalone/pull/780

Note that you will need to have asdf on your non-interactive shell path for this to work. If you see a 'bundler not installed' message this is likely the cause.

You can fix this by making sure asdf is added to your path in your .zprofile instead of your .zshrc.

I've added the rspec bin stub as part of this as it's quicker than typing bundle exec and simpler than using it in the tasks.json

@cla-bot cla-bot Bot added the cla-signed label Apr 27, 2026
@zetter-rpf zetter-rpf marked this pull request as ready for review April 27, 2026 14:25
Copilot AI review requested due to automatic review settings April 27, 2026 14:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds developer tooling to make running RSpec from VS Code easier by introducing an RSpec binstub and VS Code task definitions.

Changes:

  • Add bin/rspec Bundler-generated binstub to run RSpec without typing bundle exec.
  • Add .vscode/tasks.json with tasks to run the current spec file or the spec at the current line.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
bin/rspec Adds an RSpec binstub that runs rspec-core via Bundler.
.vscode/tasks.json Defines VS Code tasks to run RSpec for the current file or current line.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .vscode/tasks.json Outdated
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

Test coverage

89.47% line coverage reported by SimpleCov.
Run: https://github.com/RaspberryPiFoundation/editor-api/actions/runs/25001122979

Note that you will need to have asdf on your non-interactive shell path for this to work. If you see a bunder not installed message this is likely the cause.

You can fix this by making sure asdf is added to your path in your zprofile instead of your zshrc.

I've added the rspec bin stub as part of this as it's quicker than typing bundle exec and simpler than using it in the tasks.json
@zetter-rpf zetter-rpf force-pushed the add-tasks-for-tests branch from 6ed91c3 to 97da614 Compare April 27, 2026 14:31
@zetter-rpf zetter-rpf changed the title Setup tasks for rspec Setup vscode tasks for rspec Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants