Skip to content
Browse files

Add CONTRIBUTORS and improve README

I remove `share/nodeunit.vim` because I release nodeunit.vim at
https://github.com/lambdalisue/nodeunit.vim
  • Loading branch information...
1 parent 7568b4d commit 128e43118d52c09a575d3b816c6ab3900d34a79a @lambdalisue lambdalisue committed Oct 12, 2011
Showing with 23 additions and 27 deletions.
  1. +4 −0 CONTRIBUTORS.md
  2. +19 −0 README.md
  3. +0 −27 share/nodeunit.vim
View
4 CONTRIBUTORS.md
@@ -30,6 +30,10 @@ Nodeunit contributors (sorted alphabeticaly)
* Improvements to default test reporter
* HTTP test utility
+* **[Λlisue](https://github.com/lambdalisue)**
+
+ * Add machineout reporter
+
* **[Matthias Lübken](https://github.com/luebken)**
* Utility functions for tracking incomplete tests on exit
View
19 README.md
@@ -18,6 +18,7 @@ __Contributors__
* [alexkwolfe](https://github.com/alexkwolfe)
* [azatoth](https://github.com/azatoth)
* [coffeemate](https://github.com/coffeemate)
+* [lambdalisue](https://github.com/lambdalisue)
* [luebken](https://github.com/luebken)
* [orlandov](https://github.com/orlandov)
* [Sannis](https://github.com/Sannis)
@@ -346,6 +347,8 @@ Built-in Test Reporters
* __html__ - Outputs a HTML report to stdout
* __junit__ - Creates jUnit compatible XML reports, which can be used with
continuous integration tools such as [Hudson](http://hudson-ci.org/).
+* __machineout__ - Simple reporter for machine analysis. There is [nodeunit.vim](https://github.com/lambdalisue/nodeunit.vim)
+ which is useful for TDD on VIM
Writing a Test Reporter
@@ -418,6 +421,22 @@ __Note:__ There was a bug in node v0.2.0 causing the tests to hang, upgrading
to v0.2.1 fixes this.
+__machineout__ reporter
+----------------------------------------------
+
+The default reporter is really readable for human but for machinally analysis.
+When you want to analyze the output of nodeunit, use __machineout__ reporter and you will get
+
+<img src="https://github.com/caolan/nodeunit/raw/master/img/example_machineout.png" />
+
+
+nodeunit with vim
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+There is [nodeunit.vim](https://github.com/lambdalisue/nodeunit.vim) so you can use nodeunit with VIM.
+That compiler use __machineout__ reporter and it is useful to use with [vim-makegreen](https://github.com/reinh/vim-makegreen)
+
+
+
Contributing
------------
View
27 share/nodeunit.vim
@@ -1,27 +0,0 @@
-" Vim compiler file
-" Compiler: Unit testing for javascript using nodeunit
-" Maintainer: lambdalisue <lambdalisue@hashnote.net>
-" Last Change: 2011 Sep 06
-"
-" How to install:
-" copy this vim script into $VIM/compiler/ directory
-" and add the line below to $VIM/ftplugin/javascript.vim (or coffee.vim)
-"
-" compiler nodeunit
-"
-" How to use:
-" Test with ':make' command of vim. See vim plugin called 'vim-makegreen'
-"
-if exists("current_compiler")
- finish
-endif
-let current_compiler = "nodeunit"
-
-if exists(":CompilerSet") != 2 " older Vim always used :setlocal
- command -nargs=* CompilerSet setlocal <args>
-endif
-
-" Using folked version nodeunit found at
-" http://github.com/lambdalisue/nodeunit.git
-CompilerSet makeprg=echo\ $*\ >/dev/null;\ nodeunit\ --reporter\ machineout\ \"%\"
-CompilerSet efm=%s:%f:%l:%c:%m

0 comments on commit 128e431

Please sign in to comment.
Something went wrong with that request. Please try again.