# Is it possible to execute code before and after \*all\* integration tests are executed?

**URL:** <https://www.ruby-forum.com/t/is-it-possible-to-execute-code-before-and-after-all-integration-tests-are-executed/147297>\
**Category:** Rails\
**Created:** [August 30, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-execute-code-before-and-after-all-integration-tests-are-executed/147297 "2008-08-30T16:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![g0nzo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/3bc359/32.png) [@g0nzo](https://www.ruby-forum.com/u/g0nzo)\
**Post date:** [August 30, 2008, 4:18pm UTC](https://www.ruby-forum.com/t/is-it-possible-to-execute-code-before-and-after-all-integration-tests-are-executed/147297/1 "2008-08-30T16:18:57Z")

</div>

Hi,

Is it possible to execute code before and after _all_ integration  
tests are executed?

I’m trying to do reporting based on executed tests. Right now each  
test creates detailed reports based on its execution and updates the  
final report with links to the detailed reports. It works, but is a  
bit messy.

I was thinking about creating some kind of FinalReporter, which would  
gather detailed reports from each test and create the final report  
after all tests are executed.

Is it possible?
