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

testの自動コマンドにおけるテスト結果見えない問題 #6

Closed
KiichiSugihara opened this issue Jan 25, 2021 · 4 comments

Comments

@KiichiSugihara
Copy link
Owner

KiichiSugihara commented Jan 25, 2021

🐛 不具合概要

testの自動コマンドにおけるテスト結果見えない問題

🌎 発生環境

  • 環境:BigSur
  • 端末:mac
  • バージョン(アプリのみ):

🛣 再現手順

  1. yarn test

本来の挙動

テスト結果が表示される

修正しないとどう困るか

テストコマンドでサクサクテストできない

原因

stderrで受け取って,出力する部分がおかしい

  • execでコマンド叩いて,処理待って,受け取る部分
  • timeなんちゃらとでてるので
 exec('oj t -c "npx ts-node main.ts"', (err, stdout, stderr) => {省略}

2020/09/02 には動いていた

  • mac のアップデート?

修正案

📎 Images (optional)

   yarn run v1.22.5
   $  node test.js
   Test Result time: illegal option -- f
   usage: time [-lp] <command>
   
   ✨  Done in 2.94s.
@KiichiSugihara
Copy link
Owner Author

KiichiSugihara commented Jan 25, 2021

mac Catalinaあるので試したが,同じ

@KiichiSugihara
Copy link
Owner Author

@KiichiSugihara
Copy link
Owner Author

KiichiSugihara commented Jan 25, 2021

多分,testで受け取る,出力が変わったみたい

出力の受け取り方を替えたら出力できた
ただし,綺麗な出力が表示されなくなってる

スクリーンショット 2021-01-25 20 36 47

スクリーンショット 2021-01-25 20 36 29

@KiichiSugihara
Copy link
Owner Author

8d209f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant