Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
alfa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
alfa
Commits
237f29c6
Commit
237f29c6
authored
4 months ago
by
OZGCloud
Browse files
Options
Downloads
Patches
Plain Diff
OZG-6238 OZG-7130 Add marge, use pnpm instead of npx
parent
8dfb2421
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
alfa-client/apps/run-tests.sh
+3
-3
3 additions, 3 deletions
alfa-client/apps/run-tests.sh
alfa-client/package.json
+10
-9
10 additions, 9 deletions
alfa-client/package.json
alfa-client/pnpm-lock.yaml
+3
-0
3 additions, 0 deletions
alfa-client/pnpm-lock.yaml
with
16 additions
and
12 deletions
alfa-client/apps/run-tests.sh
+
3
−
3
View file @
237f29c6
...
...
@@ -41,7 +41,7 @@ if [ -z $CONFIG_FILE ]; then echo "Config File not set" && exit 1; fi
SCRIPT_DIR
=
"
$(
dirname
"
$0
"
)
"
BASE_PATH
=
${
SCRIPT_DIR
}
/
${
APP_NAME
}
SPEC_GROUP
=
${
BASE_PATH
}
/src/e2e/
${
APP_VARIATION
}
COMMAND
=
"np
x
cypress run --project
${
BASE_PATH
}
--spec
${
SPEC_GROUP
}
--config-file
${
CONFIG_FILE
}
"
COMMAND
=
"
p
np
m exec
cypress run --project
${
BASE_PATH
}
--spec
${
SPEC_GROUP
}
--config-file
${
CONFIG_FILE
}
"
REPORT_PATH
=
${
BASE_PATH
}
/reports/
${
APP_VARIATION
}
echo
"Run E2E for
${
APP_NAME
}
with command: '
$COMMAND
'"
...
...
@@ -57,10 +57,10 @@ if [ -d "${REPORT_PATH}" ]; then
MOCHA_REPORT_FILE
=
${
MOCHA_REPORT_PATH
}
report.json
mv
${
MOCHA_REPORT_JSONS
}
${
MOCHA_REPORT_PATH
}
/jsons
np
x
mochawesome-merge
${
MOCHA_REPORT_PATH
}**
/
*
.json
>
${
MOCHA_REPORT_FILE
}
p
np
m
exec
mochawesome-merge
${
MOCHA_REPORT_PATH
}**
/
*
.json
>
${
MOCHA_REPORT_FILE
}
# Workaround: mochawesome's "screenshotsFolder" value is not added in the generated HTML file. Add "screenshots" to image paths.
sed
--in-place
--regexp-extended
's/"([^"]*\.png)/"screenshots\1/'
${
MOCHA_REPORT_FILE
}
np
x
marge
${
MOCHA_REPORT_FILE
}
-f
report
-o
${
REPORT_PATH
}
p
np
m
exec
marge
${
MOCHA_REPORT_FILE
}
-f
report
-o
${
REPORT_PATH
}
else
echo
"ERROR: Reports do not exist at
${
REPORT_PATH
}
"
fi
...
...
This diff is collapsed.
Click to expand it.
alfa-client/package.json
+
10
−
9
View file @
237f29c6
...
...
@@ -21,7 +21,7 @@
"ci-prodBuild"
:
"nx run alfa:build --outputHashing=all --configuration production"
,
"ci-prodBuild-admin"
:
"nx container admin"
,
"ci-test"
:
"nx run-many --target=test --parallel 20 -- --runInBand"
,
"ci-sonar"
:
"nx run-many --target=test --parallel 20 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter && np
x
sonar-scanner"
,
"ci-sonar"
:
"nx run-many --target=test --parallel 20 -- --runInBand --codeCoverage --coverageReporters=lcov --testResultsProcessor=jest-sonar-reporter &&
p
np
m exec
sonar-scanner"
,
"lint"
:
"nx workspace-lint && nx lint"
,
"affected:apps"
:
"nx affected:apps"
,
"affected:libs"
:
"nx affected:libs"
,
...
...
@@ -38,14 +38,14 @@
"dep-graph"
:
"nx dep-graph"
,
"help"
:
"nx help"
,
"favicon"
:
"real-favicon generate favicon/faviconDescription.json favicon/faviconData.json src/favicon"
,
"cypress:run"
:
"np
x
cypress run --project apps/alfa-e2e"
,
"cypress:run-main"
:
"np
x
cypress run --project apps/alfa-e2e --spec apps/alfa-e2e/src/e2e/main-tests"
,
"cypress:run-ea"
:
"np
x
cypress run --project apps/alfa-e2e --spec apps/alfa-e2e/src/e2e/einheitlicher-ansprechpartner"
,
"cypress:run-admin"
:
"np
x
cypress run --project apps/admin-e2e"
,
"cypress:version"
:
"np
x
cypress version"
,
"cypress:install"
:
"np
x
cypress install"
,
"cypress:open"
:
"np
x
cypress open --project apps/alfa-e2e"
,
"cypress:open-admin"
:
"np
x
cypress open --project apps/admin-e2e"
,
"cypress:run"
:
"
p
np
m exec
cypress run --project apps/alfa-e2e"
,
"cypress:run-main"
:
"
p
np
m exec
cypress run --project apps/alfa-e2e --spec apps/alfa-e2e/src/e2e/main-tests"
,
"cypress:run-ea"
:
"
p
np
m exec
cypress run --project apps/alfa-e2e --spec apps/alfa-e2e/src/e2e/einheitlicher-ansprechpartner"
,
"cypress:run-admin"
:
"
p
np
m exec
cypress run --project apps/admin-e2e"
,
"cypress:version"
:
"
p
np
m exec
cypress version"
,
"cypress:install"
:
"
p
np
m exec
cypress install"
,
"cypress:open"
:
"
p
np
m exec
cypress open --project apps/alfa-e2e"
,
"cypress:open-admin"
:
"
p
np
m exec
cypress open --project apps/admin-e2e"
,
"workspace-generator"
:
"nx workspace-generator"
,
"storybook"
:
"nx storybook design-system"
,
"ci-storybook"
:
"nx build-storybook design-system && nx container design-system"
...
...
@@ -154,6 +154,7 @@
"jsonc-eslint-parser"
:
"^2.4.0"
,
"lodash"
:
"^4.17.21"
,
"mochawesome-merge"
:
"^4.3.0"
,
"mochawesome-report-generator"
:
"^6.2.0"
,
"mongodb"
:
"^4.17.2"
,
"ng-mocks"
:
"^14.13.1"
,
"ng-packagr"
:
"18.2.1"
,
...
...
This diff is collapsed.
Click to expand it.
alfa-client/pnpm-lock.yaml
+
3
−
0
View file @
237f29c6
...
...
@@ -313,6 +313,9 @@ importers:
mochawesome-merge:
specifier: ^4.3.0
version: 4.3.0
mochawesome-report-generator:
specifier: ^6.2.0
version: 6.2.0
mongodb:
specifier: ^4.17.2
version: 4.17.2(@aws-sdk/client-sso-oidc@3.687.0(@aws-sdk/client-sts@3.687.0))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment