Skip to content

Commit

Permalink
ci(systets): add systests to ci (#1164)
Browse files Browse the repository at this point in the history
  • Loading branch information
gigalasr committed Nov 28, 2024
1 parent e3e287b commit 087ea8f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ jobs:
- name: "🧪 Run the Tests"
run: bash .github/workflows/scripts/run-flowr-command.sh "test-full -- --forbid-only"

- name: "⚙️ Run System Tests"
run: bash .github/workflows/scripts/run-flowr-command.sh "test:system -- --no-watch"

- name: "⬆️ Upload Coverage Reports to Codecov"
if: github.ref == 'refs/heads/main'
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"performance-test": "func() { cd test/performance/ && bash run-all-suites.sh $1 $2 $3; cd ../../; }; func",
"test-full": "npm run test:coverage -- --no-watch -- --make-summary --test-installation",
"detect-circular-deps": "npx madge --extensions ts,tsx --circular src/",
"checkup": "npm run flowr -- --execute \":version\" && npm run lint && npm run test-full -- --forbid-only && docker build -t test-flowr -f scripts/Dockerfile . && npm run doc && npm-run-all wiki:*"
"checkup": "npm run flowr -- --execute \":version\" && npm run lint && npm run test-full -- --forbid-only && npm run test:system -- --no-watch && docker build -t test-flowr -f scripts/Dockerfile . && npm run doc && npm-run-all wiki:*"
},
"keywords": [
"static code analysis",
Expand Down
10 changes: 10 additions & 0 deletions test/system-tests/repl.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ describe('repl', () => {
assert.include(output, 'flowchart');
});

test(':df x <- 3', async() => {
const output = await flowrRepl([':df x <- 3 ', ':quit']);
assert.include(output, 'flowchart');
});

test(':df "x <- 3\nprint(x)"', async() => {
const output = await flowrRepl([':df "x <- 3\\nprint(x)"', ':quit']);
assert.include(output, 'flowchart');
});

test(':slicer', async() => {
const output = await flowrRepl([':slicer -c "3@a" -r "a <- 3\\nb <- 4\\nprint(a)"', ':quit']);
assert.include(output, 'a <- 3\na');
Expand Down

0 comments on commit 087ea8f

Please sign in to comment.