Skip to content

Commit

Permalink
test: Remove playwright and karma as frontend testing frameworks
Browse files Browse the repository at this point in the history
There were only a very small number of tests. Storybook is used for
visual testing and is sufficient for now.
  • Loading branch information
MoritzWeber0 committed Oct 10, 2024
1 parent ecf5fff commit 0369022
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 737 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,3 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
frontend:
runs-on: ubuntu-latest
name: Run frontend karma tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Fetch version
working-directory: frontend
run: |
python fetch-version.py
- name: Install dependencies
working-directory: frontend
run: |
npm i -g @angular/cli
npm ci
CHROME_BIN="$(which chromium)"
export CHROME_BIN
- name: Run tests
working-directory: frontend
run: |
ng test --watch=false --browsers=ChromeHeadless
105 changes: 0 additions & 105 deletions docs/docs/development/frontend/testing.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ nav:
- Code Style: development/frontend/code-style.md
- Responsive Design: development/frontend/responsive-design/mobile-view.md
- Routes: development/frontend/routes.md
- Testing: development/frontend/testing.md
- Customization: development/frontend/customize.md
- Storybook: development/frontend/storybook.md
- Kubernetes:
Expand Down
16 changes: 0 additions & 16 deletions frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,22 +118,6 @@
"buildTarget": "capellacollab:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
],
"codeCoverage": true
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
Expand Down
91 changes: 0 additions & 91 deletions frontend/karma.conf.js

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"@angular/compiler-cli": "~18.2.7",
"@compodoc/compodoc": "^1.1.25",
"@eslint/js": "^9.12.0",
"@playwright/test": "^1.47.2",
"@storybook/addon-docs": "^8.3.5",
"@storybook/addon-essentials": "^8.3.5",
"@storybook/addon-interactions": "^8.3.5",
Expand All @@ -62,7 +61,6 @@
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/eslint__js": "^8.42.3",
"@types/file-saver": "^2.0.7",
"@types/jasmine": "~5.1.4",
"@types/node": "^22.7.5",
"@types/semver": "^7.5.8",
"@types/uuid": "^10.0.0",
Expand All @@ -74,13 +72,6 @@
"eslint-plugin-storybook": "0.10.0--canary.156.408aed4.0",
"eslint-plugin-tailwindcss": "^3.17.4",
"eslint-plugin-unused-imports": "^4.1.4",
"jasmine-core": "~5.3.0",
"karma": "~6.4.4",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.1",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.1.0",
"npm-check-updates": "^17.1.3",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
Expand Down

This file was deleted.

Loading

0 comments on commit 0369022

Please sign in to comment.