25 Commits

Author SHA1 Message Date
Watson
40c50b3086 [spec] refactor to use Platform 2015-03-19 13:52:04 +09:00
Watson
1239ad0a39 [Android][RM-783] get rid of recursive calling in order to avoid a crash with running spec 2015-03-19 13:51:53 +09:00
Laurent Sansonetti
7635cb53e8 turns out Bacon.run is called for each spec, let's make sure we don't override the main_activity ivar with nil 2015-02-05 07:43:18 +09:00
Laurent Sansonetti
68fec97fb7 Bacon.run will keep a reference to its optional argument (as the main activity) and expose it as Context#main_activity, so that UI specs can be written 2014-12-12 08:21:05 +09:00
Laurent Sansonetti
6dd30af901 android support 2014-12-12 07:58:32 +09:00
Watson
cb21a9ae21 fix a regression where `rake spec' does not work on OS X platform
http://hipbyte.myjetbrains.com/youtrack/issue/RM-632
2014-10-17 18:16:53 +09:00
Laurent Sansonetti
896da4f7fd when running specs on the device, redirect puts/print calls to NSLog 2014-10-15 23:18:59 +09:00
Laurent Sansonetti
a7c839173c add magic encoding comments to all ruby source files 2014-03-05 21:35:20 +09:00
Eloy Durán
70ecb3078a [spec] Don't set output type unti very last moment. 2013-11-02 11:42:41 +09:00
ryo katsuma
db32694ac9 Add context method as describe alias 2013-09-22 00:27:46 +09:00
Laurent Sansonetti
31df7f7653 support pure NSExceptions 2013-07-30 23:59:04 +09:00
Colin T.A. Gray
a0a39d5333 AH! Commas! 2013-06-16 20:02:43 -04:00
Colin T.A. Gray
2104880f01 adds output=colorized option 2013-06-13 10:24:04 -06:00
Steven Webb
554a8eaa9c Include exception message in bacon error output 2013-02-20 12:20:39 +08:00
Watson
9ae3cf4949 remove a `#' if it is included in first character in tap's description because its description will handled as comment in tap format 2013-01-25 16:07:24 +09:00
Watson
95caf2d020 add a message of `describe' to description of tap's output
## before
not ok 1 - has one window: FAILED

## after
not ok 1 - Application 'test' has one window: FAILED
2013-01-25 16:07:17 +09:00
Watson
72cde58da0 fix a tap format in `rake spec' to output the each test numbers instead of the total number
## before
$ rake spec output=tap
ok 34  - works with Assets
ok 34  - works with hash
…
ok 34  - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors

## after
$ rake spec output=tap
ok 1   - works with Assets
ok 2   - works with hash
…
ok 34  - should work
1..34
# 34 tests, 61 assertions, 0 failures, 0 errors
2013-01-25 16:07:11 +09:00
Watson
930de8070f fix a bug in `rake spec' which it would raise an ArgumentError when use "it" without block
A following spec will raise an ArgumentError.

	describe "Application 'test'" do
	  it "has one window"
	end

`instance_eval' will pass a receiver object into block.
When use a block which created by lambda, it should accept a receiver object as block parameter.

	b = lambda { self.upcase }
	"test".instance_eval(&b) #=> wrong number of arguments (1 for 0) (ArgumentError)
2013-01-25 16:07:01 +09:00
Laurent Sansonetti
72f664f72d work around a compiler problem (time method signature) 2012-12-20 20:49:41 +09:00
Dennis Ushakov
dda6a8993e Added formatter for RubyMine tests runner 2012-11-15 14:06:19 +04:00
Laurent Sansonetti
506459d5c7 disable exception logging when running in spec mode 2012-07-11 15:45:07 +02:00
Laurent Sansonetti
5a37c3df38 spec UI + static libraries support 2012-07-05 16:01:54 +02:00
Marin Usalj
5810bf7599 Added the FastOutput! Fixed Knock and Tap spec names that were not displayed 2012-06-13 14:02:17 +02:00
Laurent Sansonetti
c53729248c spec output can now be specified by setting the output environment variable (ex. rake spec output=test_unit) 2012-06-10 22:07:14 +02:00
Laurent Sansonetti
c14c432602 initial revision 2012-06-01 19:26:29 +02:00