KiichiSugihara / atcoder-ts

For people who want to do AtCoder by TypeScript

Home Page:https://scrapbox.io/kii-cafe/setup_AtCoder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KiichiSugihara opened this issue · comments

commented

🐛 不具合概要

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.
commented

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

commented

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

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

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

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