Skip to content

Commit 0b8bcc9

Browse files
committed
Skip memory performance tests in CI environment
1 parent f4fbce1 commit 0b8bcc9

5 files changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/setup-node@v4
3030
with:
3131
node-version: ${{ matrix.node-version }}
32-
cache: 'npm'
32+
cache: "npm"
3333

3434
- name: Install dependencies
3535
run: npm ci
@@ -42,6 +42,8 @@ jobs:
4242

4343
- name: Run tests with coverage
4444
run: npm run test:ci
45+
env:
46+
CI: true
4547

4648
- name: Upload coverage reports
4749
uses: codecov/codecov-action@v3
@@ -50,4 +52,3 @@ jobs:
5052
flags: unittests
5153
name: codecov-umbrella
5254
fail_ci_if_error: false
53-

test/debug_dot.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
digraph AACBoard {
2+
"home" [label="Home"]
3+
"food" [label="Food"]
4+
"activities" [label="Activities"]
5+
"people" [label="People"]
6+
"navigation" [label="Navigation"]
7+
"home" -> "more" [label="More"]
8+
"navigation" -> "home" [label="Go to Home"]
9+
"navigation" -> "food" [label="Go to Food"]
10+
"navigation" -> "activities" [label="Go to Activities"]
11+
"navigation" -> "people" [label="Go to People"]
12+
}

test/debug_texts.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[
2+
"Go to Home",
3+
"Go to Food",
4+
"Go to Activities",
5+
"Go to People",
6+
"Navigation",
7+
"More",
8+
"More",
9+
"Go to Home",
10+
"Go to Food",
11+
"Go to Activities",
12+
"Go to People"
13+
]

test/diagnostic_write.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/performance.memory.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import path from 'path';
44
import { TouchChatProcessor } from '../src/processors/touchchatProcessor';
55
import { SnapProcessor } from '../src/processors/snapProcessor';
66
import { DotProcessor } from '../src/processors/dotProcessor';
7-
import { TreeFactory } from './utils/testFactories';
87

9-
describe('Memory Performance Tests', () => {
10-
const tempDir = path.join(__dirname, 'temp_performance');
8+
// Skip memory intensive tests in CI environment
9+
const describeIfLocal = process.env.CI ? describe.skip : describe;
10+
11+
describeIfLocal('Memory Performance Tests', () => {
12+
const tempDir = path.join(__dirname, 'temp_performance_memory');
1113

1214
beforeAll(() => {
1315
if (!fs.existsSync(tempDir)) {

0 commit comments

Comments
 (0)