coderay-scanner-tests's People
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.