Code Monkey home page Code Monkey logo

guard-cunit's People

Contributors

teacup-on-rockingchair avatar

Stargazers

 avatar

Watchers

 avatar  avatar

guard-cunit's Issues

run on change expects path argument while guard-cunit is ignoring it

ERROR: Guard::Cunit failed to achieve its <run_on_change>, exception was:
ArgumentError: wrong number of arguments (1 for 0)
/usr/lib/ruby/gems/1.9.1/gems/guard-cunit-0.0.1/lib/guard/cunit.rb:24:in run_on_change' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:90:inblock in run_supervised_task'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:88:in catch' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:88:inrun_supervised_task'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:137:in block in run_first_task_found' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:135:ineach'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:135:in run_first_task_found' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:71:inblock in run_on_changes'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:161:in block (3 levels) in scoped_guards' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:160:ineach'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:160:in block (2 levels) in scoped_guards' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:159:incatch'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:159:in block in scoped_guards' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:158:ineach'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:158:in scoped_guards' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard/runner.rb:63:inrun_on_changes'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard.rb:110:in block (2 levels) in setup_listener' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard.rb:323:inblock in within_preserved_state'
internal:prelude:10:in synchronize' /usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard.rb:320:inwithin_preserved_state'
/usr/lib/ruby/gems/1.9.1/gems/guard-1.2.3/lib/guard.rb:109:in block in setup_listener' /usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/listener.rb:190:incall'
/usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/listener.rb:190:in on_change' /usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/listener.rb:199:inblock in initialize_adapter'
/usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/adapter.rb:162:in call' /usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/adapter.rb:162:inpoll_changed_dirs'
/usr/lib/ruby/gems/1.9.1/gems/listen-0.4.7/lib/listen/adapters/linux.rb:44:in `block in start'

Guard::Cunit has just been fired

fixed by commit 1f6e251

suite initialization failure is not handled by parser

parser of cunit output does not handle suite initialization failure, in case programmer does not take care to report error exit code in that case.
The Cunit generally outputs following message:
WARNING - Suite initialization failed for ....
and in the summary one can see that we have suites that are not run. For example:

[#] Run Summary: Type Total Ran Passed Failed Inactive
[#] suites 3 2 n/a 1 0
[#] tests 26 24 24 0 0
[#] asserts 185 185 185 0 n/a

stderr output missed

On some systemd the stderr output is not seen when guard is started, also spawning the tasks via the popen, by default givesme only stdout. That is ok with my dflt configuration issuing 'make 2>&1' but I would consider that not so elegant solution so will submit a patch to always merge in popen call stderr and stdout output

guard interactor interrupts rspec execution

here how the rspec execution looked like on MAC (I needed to type 'quit' on each test that called guard.run):

testmacs-Mac:guard-cunit testmac$ rspec -f d

Guard::Cunit::CunitParser
should generate a UI summary and full output from given text input
failure summary should be maximum a 3 row output
should be able to init with no output and later trigger process

Guard::Cunit
should inherit Guard class
Run guard
should run build
should run build on changes

should set libpath for executbles with current project directory by default

[1] guard(main)> quit
should set libpath to predefined lib directory when user has specified such in the Guardfile[1] guard(main)> quit

[1] guard(main)> quit
[1] guard(main)> quit
should run cunit test define in the Guardfile
[1] guard(main)> quit
should run predefined build command
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[1] guard(main)> quit
should run predefined clean command
Handle exit codes
[1] guard(main)> quit
should report failure on build failed
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[1] guard(main)> quit
should report failure on test failed
Displaying notifications
[1] guard(main)> quit
should display failure if build fails
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
[1] guard(main)> quit
should display failure if test fails
[1] guard(main)> quit
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
should display pending if test is absent
should display success if build and test succeeded

Finished in 10.24 seconds
17 examples, 0 failures
testmacs-Mac:guard-cunit testmac$

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.