Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-1378

Nice to have systemPropertiesFile configurable by user property

    XMLWordPrintableJSON

Details

    Description

      I would like to have option to configure my tests with property files. But property file is not required, because in 95% my tests work fine with default configuration.

      I used the following workaround: I configured failsafe plugin in the following way

      <properties>
        <my.test.props.file></my.test.props.file>
      </properties>
      (...)
      <artifact>maven-failsafe-plugin</artifact>
      (...)
      <systemPropertiesFile>${my.test.props.file}</systemPropertiesFile>
      

      In 95% I call mvn verify, systemPropertiesFile is not found and ignored -all pass
      In 5% I call mvn verify -Dmy.test.props.file=x.props

      The problem is in 95% I get warning about missing files. Also configuration is unnecessary complicated

      I would like drop whole connfiguration from pom.xml and use:
      In 95% mvn verify
      In 5% mvn verify -Dfailsafe.systemPropertiesFile=x.props

      Attachments

        Activity

          People

            tibordigana Tibor Digana
            michaldo Michal Domagala
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m