chore(tests): include junit,verbose reporters and junit report output… (#3453)

* chore(tests): include default reporters and junit with report output file on CI

Signed-off-by: Ondrej Dockal <odockal@redhat.com>
This commit is contained in:
Ondrej Dockal 2023-08-10 15:37:44 +02:00 committed by GitHub
parent 8f12e1aafe
commit f42de6807b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View file

@ -209,12 +209,6 @@ jobs:
- name: Run svelte check
run: yarn svelte:check
- uses: actions/upload-artifact@v3.1.2
if: always()
with:
name: tests
path: ./tests/output/
smoke-e2e-tests:
name: smoke e2e tests
runs-on: ubuntu-22.04
@ -245,5 +239,5 @@ jobs:
- uses: actions/upload-artifact@v3.1.2
if: always()
with:
name: tests
name: smoke-e2e-tests
path: ./tests/output/

View file

@ -34,7 +34,7 @@ const config = {
* By default, vitest search test files in all packages.
* For e2e tests have sense search only is project root tests folder
*/
include: ['**/{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
include: ['**/tests/src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
exclude: [
'**/builtin/**',
'**/node_modules/**',
@ -48,6 +48,9 @@ const config = {
*/
testTimeout: 60_000,
hookTimeout: 60_000,
// test reporters - default for all and junit for CI
reporters: process.env.CI ? ['default', 'junit'] : ['default'],
outputFile: process.env.CI ? { junit: 'tests/output/junit-results.xml' } : {},
},
resolve: {
alias: {