---
id: change/al-go/2283
type: change
title: "#2283 Fix issue 2267: appsourcecop.json is not created for testapps"
summary: Test and BCPT apps now generate appsourcecop.json files when code analyzers are enabled on test apps, preventing AS0054 compilation failures.
tier: official
language: en
tags:
  - fix
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:58.784Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: aebdfe1a7536e9ada2d8021a323dcdb14b7704b1
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2283
    title: "microsoft/AL-Go#2283: Fix issue 2267: appsourcecop.json is not created for testapps"
    date: "2026-07-21"
    commit: aebdfe1a7536e9ada2d8021a323dcdb14b7704b1
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2283
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2283
kind: pr
base_branch: main
major: null
merged_at: "2026-07-21T09:54:04Z"
author: spetersenms
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 2
  additions: 6
  deletions: 1
  al: 1
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/CompileApps/Compile.ps1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #2283 Fix issue 2267: appsourcecop.json is not created for testapps

> Test and BCPT apps now generate appsourcecop.json files when code analyzers are enabled on test apps, preventing AS0054 compilation failures.

[Pull request](https://github.com/microsoft/AL-Go/pull/2283) · merged into `main` on 2026-07-21 by spetersenms · 2 files (+6 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- AppSourceCop analyzer was applied to test apps but configuration file wasn't created
- New-AppSourceCopJson is now called for test app folders in addition to regular app folders
- Resolves AS0054 errors when enableCodeAnalyzersOnTestApps setting is used
- Compilation action in AL-Go workflow now handles test apps consistently
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/CompileApps/Compile.ps1`: modified, not in the BC? snapshot

## Context

- Systems: development, platform

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
