amber-smalltalk/amber — pull request #686 by tomrake (2013-09-22 03:07:04+00:00)
Title: Testing for grunt-amberc.js and verbose_tests case gruntfile.

This is the best and least intrusive method I have found to debug and test the grunt-amberc.js task. This method has critics because it is not "outside the task". I would welcome a method like that but until that method is presented lets debug and test with this method. This method can be stripped from the code when all bugs are removed from the code which is likely never.

I also include testcases/verbose_tests.js you do the tests by:

grunt --gruntfile verbose_tests.js

This test has a critic that objects to the use of integer values 1,2 and 3 in this test for boolean values. I respond, that this is testing and javascript coerces integer 0 to false and all other to true.

To write new tests write a similar gruntfile with a amber.test_return set to a function(configuration) { test the config}