Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reporters verbose does not show timings in output when CI is active #4900

Closed
6 tasks done
thbley opened this issue Jan 8, 2024 · 0 comments · Fixed by #4929
Closed
6 tasks done

Reporters verbose does not show timings in output when CI is active #4900

thbley opened this issue Jan 8, 2024 · 0 comments · Fixed by #4929
Labels
enhancement New feature or request

Comments

@thbley
Copy link

thbley commented Jan 8, 2024

Describe the bug

Reporters "verbose" does not show timings in output when CI is actived.

Reproduction

vitest.config.js

import { defineConfig } from 'vitest/config';

export default defineConfig({
    test: {
        reporters: ['verbose'],
        cacheDir: '/tmp/',
        logHeapUsage: true,
        typecheck: { enabled: true }
    }
});

output with timings, e.g. 601ms:

node_modules/.bin/vitest run

Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.

 RUN  v1.1.3 /home/tb/code/php_frameworkless/tasks_fe/tests

 ✓ unit/services/LoginService.test.js (4) 10 MB heap used
   ✓ test get email 10 MB heap used
   ✓ test get email invalid token 10 MB heap used
   ✓ test get email invalid token #2 10 MB heap used
   ✓ test get email invalid token #3 10 MB heap used
 ✓ ssr/index-html.test.js (5) 601ms 42 MB heap used
   ✓ test login page 569ms 41 MB heap used
   ✓ test tasks list 579ms 41 MB heap used
   ✓ test create page 584ms 41 MB heap used
   ✓ test invalid cookie 593ms 42 MB heap used
   ✓ test unmatched cookie 598ms 42 MB heap used

 Test Files  2 passed (2)
      Tests  9 passed (9)
Type Errors  no errors
   Start at  10:07:48
   Duration  1.81s (transform 175ms, setup 1ms, collect 772ms, tests 614ms, environment 1ms, prepare 321ms)

output without timings, e.g. 601ms missing:

CI=1 node_modules/.bin/vitest run

Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.

 RUN  v1.1.3 /home/tb/code/php_frameworkless/tasks_fe/tests

 ✓ unit/services/LoginService.test.js > test get email 11 MB heap used
 ✓ unit/services/LoginService.test.js > test get email invalid token 11 MB heap used
 ✓ unit/services/LoginService.test.js > test get email invalid token #2 11 MB heap used
 ✓ unit/services/LoginService.test.js > test get email invalid token #3 11 MB heap used
 ✓ ssr/index-html.test.js > test login page 41 MB heap used
 ✓ ssr/index-html.test.js > test tasks list 41 MB heap used
 ✓ ssr/index-html.test.js > test create page 41 MB heap used
 ✓ ssr/index-html.test.js > test invalid cookie 42 MB heap used
 ✓ ssr/index-html.test.js > test unmatched cookie 42 MB heap used

 Test Files  2 passed (2)
      Tests  9 passed (9)
Type Errors  no errors
   Start at  10:07:54
   Duration  1.75s (transform 189ms, setup 0ms, collect 876ms, tests 503ms, environment 1ms, prepare 317ms)

System Info

node --version v20.10.0

npm list
├── @types/node@20.10.7
├── jsdom@23.2.0
└── vitest@1.1.3

Used Package Manager

npm

Validations

@sheremet-va sheremet-va added enhancement New feature or request and removed pending triage labels Jan 8, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants