title: Cucumber tests not reading cucumber.properties file
body: <p>I created a small snippet Spring Boot application using Junit5 and Cucumber.
  Because I need to use Junit5 I am using <code>cucumber-junit-platform-engine</code> which does not support the annotation <code>CucumberOptions</code></p>
  <p>As quoted in cucumber.io website:</p>
  <blockquote>
  <p>When property parsing functionality is not provided by the runner (i.e. cucumber-junit-platform-engine) Cucumber will in order of precedence parse properties from system properties, environment variables and the cucumber.properties file.</p>
  </blockquote>
  <p>Because of this I added the following a file named <code>cucumber.properties</code> to my directory <code>src/test/resources</code> with the following content:</p>
  <pre><code>cucumber.plugin=json:target/cucumber-reports/,pretty
  </code></pre>
  <p>Yet, when I run my tests this file seems to be ignored as no reports are generated while if I pass the same property through cli arguments such as:</p>
  <p><code>mvn test -Dcucumber.plugin=json:target/cucumber-reports/,pretty</code> it generates the expected json reports.</p>
  <p>I have also tried putting the file under <code>src/main/resources</code> and under <code>src/main/test/cucumber.demo</code> (where the feature files are located), but none of these attempts worked. Any idea why the file is being ignored?</p>
  <p>Here is my Runner class:</p>
  <pre class="lang-java prettyprint-override"><code>@Cucumber
  public class CucumberTest {
      
  }
  </code></pre>
  <p>and my Step Definition class:</p>
  <pre class="lang-java prettyprint-override"><code>@CucumberContextConfiguration
  @SpringBootTest
  public class StepDefinition {
  
      @Autowired
      String bean;
  
      //Step Definition 
      (...)
  
  }
  </code></pre>