
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Easy test runner customization
Add this line to your application's Gemfile:
gem 'koine-test_runner'
And then execute:
$ bundle
# run tested code in line 55
bundle exec run_test some/file_spec.rb --line=55
# run the whole file
bundle exec run_test some/file.php
# unknown file
bundle exec run_test some/file_spec.custom
# => error: No test runner found for file 'some/file_spec.custom'
# .test_runner.yml
adapters:
minitest:
adapter: minitest
file_pattern: "*_spec.rb"
rspec:
adapter: rspec
file_pattern: "*_spec.rb"
phpunit:
adapter: phpunit
file_pattern: "*Test.php"
jest:
adapter: custom
file_pattern: "client/.*.spec.js"
command: "./node_modules/.bin/jest"
commands:
all: "{command}"
file: "{command} {file}"
# oops, jest does not really filter by line
line: "{command} {file}"
# TODO
My::CustoAdapter:
require:
- some/file
adapter: MyCustomAdapter
suffix: '_spec.custom'
module My
class CustomAdapter
def initialize(suffix:)
@suffix = suffix
end
# return nil if you do not want to deal with it
def test_command(config)
if config.file_path.end_with?(@suffix)
return "./bin/test #{config.file_path}"
end
end
end
end
Now you can run:
bundle exec run_test some/file_spec.custom
Either run a file that does not get caught by any adapter
bundle exec run_test some/file_spec.unkown # run last test
Or
bundle exec run_test --last
cat /tmp/test_runner.log
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/mjacobus/test_runner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that koine-test_runner demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.