Skip to content

Commit 946e6ba

Browse files
committed
Use a more robust way to generate integration test report
1 parent 3dad374 commit 946e6ba

File tree

32 files changed

+37
-50
lines changed

32 files changed

+37
-50
lines changed

.github/workflows/pr.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,22 +221,6 @@ jobs:
221221
222222
echo "All skill files have valid frontmatter"
223223
224-
- name: Check skill name prefix conflicts
225-
if: steps.changed-skills.outputs.any_changed == 'true'
226-
run: |
227-
# Collect toplevel skill directory names under plugin/skills
228-
NAMES=$(ls -d plugin/skills/*/ | xargs -n1 basename)
229-
230-
# Check if any name is a prefix of another
231-
while IFS= read -r a; do
232-
while IFS= read -r b; do
233-
if [ "$a" != "$b" ] && [[ "$b" == "$a"* ]]; then
234-
echo "error: Skill name '$a' is a prefix of '$b'"
235-
exit 1
236-
fi
237-
done <<< "$NAMES"
238-
done <<< "$NAMES"
239-
240224
- name: Skip message
241225
if: steps.changed-skills.outputs.any_changed != 'true'
242226
run: echo "No skill files changed - skipping validation"

tests/AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ if (skipTests && skipReason) {
237237

238238
const describeIntegration = skipTests ? describe.skip : describe;
239239

240-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
240+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
241241
test('invokes skill for relevant prompt', async () => {
242242
const agentMetadata = await run({
243243
prompt: 'What role should I assign for blob storage access?'

tests/_template/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const SKILL_NAME = "your-skill-name";
2727
// Use centralized skip logic from agent-runner
2828
const describeIntegration = shouldSkipIntegrationTests() ? describe.skip : describe;
2929

30-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
30+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3131
const agent = useAgentRunner();
3232

3333
// Example test: Verify the skill is invoked for a relevant prompt

tests/appinsights-instrumentation/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if (skipTests && skipReason) {
3737

3838
const describeIntegration = skipTests ? describe.skip : describe;
3939

40-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
40+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
4141
const agent = useAgentRunner();
4242

4343
describe("skill-invocation", () => {

tests/azure-ai/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-aigateway/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-compliance/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

tests/azure-cost-optimization/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if (skipTests && skipReason) {
3333

3434
const describeIntegration = skipTests ? describe.skip : describe;
3535

36-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
36+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3737
const agent = useAgentRunner();
3838

3939
describe("skill-invocation", () => {

tests/azure-deploy/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const describeIntegration = skipTests ? describe.skip : describe;
3737
const deployTestTimeoutMs = 1800000;
3838
const brownfieldTestTimeoutMs = 2700000;
3939

40-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
40+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
4141
const agent = useAgentRunner();
4242
describe("skill-invocation", () => {
4343
test("invokes azure-deploy skill for deployment prompt", async () => {

tests/azure-diagnostics/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (skipTests && skipReason) {
3232

3333
const describeIntegration = skipTests ? describe.skip : describe;
3434

35-
describeIntegration(`${SKILL_NAME} - Integration Tests`, () => {
35+
describeIntegration(`${SKILL_NAME}_ - Integration Tests`, () => {
3636
const agent = useAgentRunner();
3737

3838
describe("skill-invocation", () => {

0 commit comments

Comments
 (0)