google / google/wireit

Cache terminal output

Open
#1,232 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.4k
Forks
128
Avg merge
4d 10h
Merged PRs (30d)
4

Description

It seems a script cached by wireit does not show previous terminal outputs, so if I cache a unit test (with `coverage` folder as output, `src` as input files), I won't see the test results and coverage table again.

```shell
Klarwind :: ~/Develop/template-lib-ts ‹master*› » WIREIT_LOGGER=metrics npm run test

> @otakustay/template-lib-ts@1.0.0 test
> wireit

🏃 [test] Running command "vitest run"

RUN v2.1.5 /Users/otakustay/Develop/template-lib-ts
Coverage enabled with v8

✓ src/__tests__/index.test.ts (1 test) 2ms

Test Files 1 passed (1)
Tests 1 passed (1)
Start at 16:21:31
Duration 243ms (transform 14ms, setup 0ms, collect 10ms, tests 2ms, environment 0ms, prepare 33ms)

% Coverage report from v8
----------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
----------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
index.ts | 100 | 100 | 100 | 100 |
----------|---------|----------|---------|---------|-------------------
✅ [test] Executed successfully
🏁 [metrics] Executed 1 script(s) in 0.49 seconds
Ran : 1 (100%)
Skipped (fresh) : 0 (0%)
Restored from cache : 0 (0%)
Klarwind :: ~/Develop/template-lib-ts ‹master*› » WIREIT_LOGGER=metrics npm run test

> @otakustay/template-lib-ts@1.0.0 test
> wireit

✅ [test] Already fresh
🏁 [metrics] Executed 1 script(s) in 0.01 seconds
Ran : 0 (0%)
Skipped (fresh) : 1 (100%)
Restored from cache : 0 (0%)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.