Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cspec

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cspec

  • 0.2.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cspec

Running test cases via CSV

The goal of this project is to have a centralised location where all specs can be run

Quick start

  • Add this to your Gemfile
  gem 'cspec'
  • Create a CSV named specs.csv with the following spec
class,name,type,initialization_arg_1,method,method_arg_1,expected
MyClass,my test,,hello,,world
  • Create a file named my_csv_specs.rb to run the specs
require 'cspec'

# The implementation of the Ruby class being testedc
class MyClass
  def hello
    'world'
  end
end

# Running the specs
result = CSpec::Runner.run!("#{Dir.pwd}/specs.csv")
puts "Success: #{result}"
  • Run with ruby my_csv_specs.rb

FAQs

Package last updated on 18 Mar 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc