GithubHelp home page GithubHelp logo

rubychan / coderay-scanner-tests Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 8.0 11.45 MB

Shell 2.39% Ruby 34.01% C 15.40% Clojure 0.48% C++ 1.84% CSS 0.49% Pascal 1.79% Go 0.11% Groovy 6.56% Java 9.72% JavaScript 6.23% Lua 1.26% PHP 3.07% Python 12.67% Scheme 2.72% HTML 1.11% SQLPL 0.14%

coderay-scanner-tests's People

Contributors

korny avatar nathany avatar

Stargazers

 avatar

Watchers

 avatar  avatar

coderay-scanner-tests's Issues

It does not work with ruby 2.1.6 and test-unit 3.1.3.

How to run coderay-scanner-tests?

Under ruby 2.6.1, coderay-scanner-tests uses ruby's default test-unit.
So, it complains like:

$ ruby --version
ruby 2.1.6p336 (2015-04-13 revision 50298) [amd64-freebsd10]
$ ruby suite.rb
(snip)/coderay_suite.rb:536:in `<class:TestSuite>': uninitialized constant Test::Unit::TestSuite (NameError)

I think that newer version of test-unit is needed.
To use latest test-unit, I wrote a minimal patch:

diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..407b4f1
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,2 @@
+source 'https://rubygems.org'
+gem 'test-unit', '>=3.0'
diff --git a/coderay_suite.rb b/coderay_suite.rb
index a0250fd..6f542a3 100644
--- a/coderay_suite.rb
+++ b/coderay_suite.rb
@@ -12,6 +12,7 @@ $:.unshift $mydir + '..' + 'lib'
 require 'rubygems' unless defined? Gem
 require 'term/ansicolor' unless ENV['nocolor']

+require 'bundler/setup'
 require 'test/unit'

 if defined? Term::ANSIColor

With patched coderay-scanner-tests, there is no error, but no tests are tested.

$ bundle install
Using power_assert 0.2.4
Using test-unit 3.1.3
Using bundler 1.10.6
(snip)
$ ruby suite.rb
Loaded suite CodeRay::Scanners
Started


Finished in 0.0007419 seconds.
--------------------------------------------------------------------------------0 tests, 0 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed
--------------------------------------------------------------------------------0.00 tests/s, 0.00 assertions/s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.