Custom Engine Modes - Dynamic project name regex by changed project name
Hello,
we have the following naming conversion:
Company.ComponentA.Foo.dll
Company.ComponentA.Foo_uTest.dll
I want the relevant unit test dlls to be selected based on the changed product projects.
As an addition the mapping should be flexible and support:
1. Just the unit test target of the changed product target should be used
2. All unit test targets of a changed component should be used.
Idea:
1. Selection Pattern for the changed project
'^(\w+[.]\w+[.]).*$' // Captures "Company.ComponentA."
Then a string.Format line to create the regex pattern for the project name selection:
'^{0}._uTest$' which would lead to "Company.ComponentA.._uTest"
=> All unit tests of a changed component are selected.
Maybe the use of string.Format to create the pattern should be replaced by a better solution (e.g. Regex Replace)
With best regards,
Stefan