/
How to include Anonymous Methods in your scan

How to include Anonymous Methods in your scan

By Default, Anonymous methods are being ignored during a scan. Customers might use anonymous methods in their code and would like to include those in their Coverage Report.

In order to do that, you would first have to confirm that the code has been actually ignored:

  • From the dashboard, locate the Application/Branch/Build

  • Toggle off the “Show only code that is scoped and unignored”

  • make sure you can locate the ignored code (grayed out) under the coverage report

  • you can also verify that in the RAW file of the build, under S3: /sl-agents-files-usw/PROD-{CUSTOMER_NAME}/build-diff-files/raw/{CUSTOMER_NAME}/{APP_NAME}/{BRANCH}/{BUILD}

once you verified that, you can then update the ignore configuration to include Anonymous Methods from the next build:

  • From the Dashboard, go to “Settings”

  • Under “Data Scope” click “Ignored Code”

  • Click

  • Choose your application, and uncheck the “Anonymous Methods”

  • Click “Done”

From the next build, your Anonymous methods will be included in the the coverage report

 

Related content

Installing our agents - Typical Setup
Installing our agents - Typical Setup
Read with this
Using Go Agent - Scanning a build
Using Go Agent - Scanning a build
More like this
SeaLights Node.js agent
SeaLights Node.js agent
Read with this
Using the Code Viewer to view coverage data
Using the Code Viewer to view coverage data
More like this
Connectivity check - Agents cannot reach SeaLights platform (unreachable network errors)
Connectivity check - Agents cannot reach SeaLights platform (unreachable network errors)
Read with this
Running Tests using AVA framework
Running Tests using AVA framework
More like this