Starting with dotTEST 2025.1, you can deploy and run custom Roslyn rules in dotTEST. To make these rules available in the Test Configuration Editor in DTP, you will need to copy the Roslyn rule definitions from dotTEST to your DTP server. To do so:

  1. Back up your existing rule data to a directory of your choice. Be sure to back up the model files and the rules documentation .zip file, which can be found here:
    • <DTP_INSTALL>/grs/testConfiguration/dottest/model
    • <DTP_INSTALL>/tomcat/webapps/grs/rulesdoc.zip
  2. Copy the new Roslyn rules files from dotTEST to DTP.
    • Copy <DOTTEST_INSTALL>/integration/DTPServer/dotTEST/model to <DTP_INSTALL>/grs/testConfiguration/dottest/model. If you are warned about any conflicts, choose to overwrite.
    • Extract the contents of the dotTEST rulesdoc.zip file (located in <DOTTEST_INSTALL>/integration/DTPServer/dotTEST) and copy them into the DTP rulesdoc.zip file (located in <DTP_INSTALL>/tomcat/webapps/grs). If you are warned about any conflicts pertaining to Roslyn rules, choose to overwrite, but be sure that you do not delete or modify existing content in the rulesdoc.zip file for other tools.
      • In Linux, you can use the zip -r command to copy files into DTP's rulesdoc.zip file.
      • Windows does not have a built-in mechanism for copying files to a zip. You will need to use an application such as 7-Zip or Winrar to do it.
  3. Restart DTP. You should now see your Roslyn rules on the Static Analysis tab of a test configuration; see Static Analysis Tab.


  • No labels