I was doing hero s trial and for so some reason all my hero s were alive and it just ends. It's a failure to. Hero's trial has been bugged
Are you sure you didn't pressed "End Battle" accidentally ? If it happened once than it will be probably cause you pressed that button, and didn't noticed.
Or you can record Hero Trials run till you find one with that bug and post link to that video to Live Support.