
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
= SpeCuke
A simple helper command to run rspec or cucumber tests.
== Description
spe_cuke provides command `sc'.
This helps you to run spec/cuke test in various environments, such as bundler-ized?, --format-executable in .gemrc or so.
=== Example The command below invokes
sc --line 32 spec/foobar/foobar_spec.rb
when bundlized(Gemfile exists)
bundle exec spec --color --fn spec/foobar/foobar_spec.rb:32
when not bundlized but --format-executable in .gemrc
spec18 --color --fn spec/foobar/foobar_spec.rb:32
and has option to specify invoking via rake.
sc -r --line 32 spec/foobar/foobar_spec.rb #=> bundle18 exec rake spec SPEC=spec/foobar/foobar_spec.rb:32
== Vim script
append below to your .vimrc or so.
function! s:SetupSpeCuke() command! RunTestFile exe '!sc ' . expand('%:p') command! RunTestCase exe '!sc --line ' . line('.') . ' ' . expand('%:p')
nnoremap -tf :RunTestFile nnoremap -tc :RunTestCase endfunction
au BufRead,BufNewFile _spec.rb,.feature call s:SetupSpeCuke()
Then
You type '-tf' in normal mode, invokes 'sc --line <current_line> <current_file>' and test around current line's example/scenario.
You type '-tc' in normal mode, invokes 'sc <current_file>' and test current file.
== Planning features.
== Installation
gem install spe_cuke
== Acknowledgements
spe_cuke's development has been supported by Eiwa System Management,Inc.
== Copyright
Author:: MOROHASHI Kyosuke moronatural@gmail.com Copyright:: Copyright (c) 2010 MOROHASHI Kyosuke License:: MIT
FAQs
Unknown package
We found that spe_cuke demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.