title: How to implement setUp and tearDown functions in Lua before and after testcase
body: <p>I am trying to write test cases in lua. I want to do some setUp before executing test cases and tearDown after executing the test cases. How would I able to acheive in LUA. Does lua supports this?</p>
  
  <p>myFirstLuaTesting.lua</p>
  
  <pre><code>function setUp() #Should be executed first
      --setup the testcase
  
  function testSample1() #Should be executed after setup
      --execute assertions in test case
  function testSample1() #Should be executed after setup
      --execute assertions in test case
  
  function tearDown() #Should be executed last after testcases executed
      --tearDown the testcase
  </code></pre>
  
  <p>I am using lunatest framework to run the test case</p>
  
  <pre><code>lunatest.suite("myFirstLuaTesting")
  lunatest.run()
  </code></pre>