title: How to let pytest know that a new test begins
body: <p>In a Python project, we have a function test that specifies test input and expected results in a set of yaml files in a directory. We have code that loops over the yaml files in the directory, and loops over the test cases in each yaml file, and then executes the test case.</p>
  
  <p>We currently run the whole script that drives these loops as a single test case under pytest. That clutters up the display, because we print info which testcase is currently executing, and has some other disadvantages.</p>
  
  <p>We would like to change this so that each test case in each yaml file becomes known to pytest as a separate test case.</p>
  
  <p>How can this be achieved?</p>
  
  <p>Basically, I am hoping that the loops in our test case driver script can remain there and in the inner loop, we can simply let pytest know that a new test case begins. But of course, I'm open to other solutions as well.</p>