I am running a rake task for the more number of operations.

 Eg: rake test:sample

Finished in 66.951185957 seconds.

1 tests, 256 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

0.01 tests/s, 3.82 assertions/s

I want to store the overall final result of rake task such as number of tests passed/failed with file name, assertions,errors etc in a file like index.html will be generated for rspec tests in coverage/index.html. I am using Test::Unit in rake task.

Can any one tell me solution for it.

有帮助吗?

解决方案 2

We can use ci_reporter gem to generate the reports. it will results in xml format.

Link Here

其他提示

You should have a look at the rspec's help rspec --help which gives you a lot of options when testing with rspec. Hope it helps.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top