Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
cucumber_rake_runner
Advanced tools
Cucumber helper to run rake tasks in the current process, capturing properties to assert tests against
Add this line to your application's Gemfile:
gem 'cucumber_rake_runner', require: false
And then execute:
$ bundle
Or install it yourself as:
$ gem install cucumber_rake_runner
Add the following line to your cucumber environment file typically found at features\support\env.rb
require 'cucumber_rake_runner'
Sometimes there is a need to test your rake tasks. Typically this is done by a system call such as
@output = `rake some:amazing:task`
Sometimes this is desirable, at other times, in particular when using Jruby it is not. For each execution of the above a new JVM must spin up costing significant delays to test turnaround time.
The solution is to run the task inline to the cucumber process via Rake's invoke command. This gem provides a handy dandy solution to get the above functionality and more while running the rake task inline to the current process.
Simply incorportate the following call appropriately in your step definitions
@rake_output = run_rake_task(task_name, arg1, arg2, ... )
This will run the rake tasks with the specified parameters. If the rake task does not take parameters only the task_name is required.
The returned obect from this call is an OpenStruct with the following properties
for example
@rake_output.stdout.include? 'Some expected output from task'
See the features and step definitions in this gem for example usage.
Tests can be run via
cucumber
There are rake task definitions that the tests depend on. Please feel free to expand.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that cucumber_rake_runner 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.