Reporting custom functions in unit/integration test

1 Answer 33 Views
Report Designer (standalone)
Tarquin
Top achievements
Rank 1
Iron
Tarquin asked on 29 Sep 2024, 06:00 PM

Hi All,

(.NET 8 application)

I have created unit tests to run Telerik report component and it works great. I load the report definition file and run using ReportProcessor and get an output pdf file.

I have also created custom functions and configured the standalone report designer (SRD) config file. I can preview the custom functions in the SRD. Now I have a problem, I dont know how to configure the unit test environment to load the custom functions? Can anyone give advice how to configure for unit tests?

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Tarquin
Top achievements
Rank 1
Iron
answered on 29 Sep 2024, 06:08 PM

Sorry, 10 minutes after I posted this question I found the answer here: https://docs.telerik.com/reporting/doc-output/configure-the-report-engine/overview.

Create an appsettings.json file and set to copyalways so is copied to output directory.

Add the following:

  {
  "telerikReporting": {
    "assemblyReferences": [
      {
        "name": "XYZ.AssemblyName",
        "version": "1.0.0.0"
      }
    ]
  }
}
Tags
Report Designer (standalone)
Asked by
Tarquin
Top achievements
Rank 1
Iron
Answers by
Tarquin
Top achievements
Rank 1
Iron
Share this question
or