A test automation library based on common other best practice open source libraries. It adds missing functionalities but does not reinvent the wheel. Just glues stuff together nicely and adds some sprinkles.
MIT License
80
stars
11
forks
source link
Filter test methods for execution by regex from configuration file #179
In some projects, it's required to execute only the test, the class name, method name, and test id of which match the specific regex. Although maven-surefire offers the way to do it via -Dtest=%=regex[.*.*] option, this only works for execution in the console.
It would be great to have a feature, that would allow such filtering for execution in IDE and also controlling the regex via a configuration file.
Implementation suggestion:
read regex from neodymium.configuration file
in NeodymiumRunner.computeTestMethods filter the computedTestMethods list by the regex
In some projects, it's required to execute only the test, the class name, method name, and test id of which match the specific regex. Although maven-surefire offers the way to do it via
-Dtest=%=regex[.*.*]
option, this only works for execution in the console.It would be great to have a feature, that would allow such filtering for execution in IDE and also controlling the regex via a configuration file.
Implementation suggestion:
neodymium.configuration
fileNeodymiumRunner.computeTestMethods
filter the computedTestMethods list by the regex