如何清除Detox CLI日志?

时间:2019-04-12 18:44:23

标签: javascript react-native react-native-ios e2e-testing detox

我想消除测试日志中的所有混乱情况。在IOS中进行测试时,我的cli充满了UI元素说明,但我还没有在Android中尝试过。在测试服完成运行后,滚动回到顶部以找到有用的错误消息非常烦人。我已经尝试过-l /-loglevel标志的所有值,但是没有运气。

看起来像这样

...Useful messages here

THIS IS THE CLUTTER => Hierarchy: <UIWindow:0x7f9bbd5236f0; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>
      |--<RCTRootView:0x7f9bbd434f10; AX=N; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>

      |  |--<RCTRootContentView:0x7f9bbd51b4e0; AX=N; AX.label='Foo Bar CREATE ACCOUNT LOGIN Go to home Welcome!  Tap here to login   Foo Bar  Foo Bar  Hey, welcome back!  E-mail  Password    Incorrect email or password. LOGIN Register Reset password Login'; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>

      |  |  |--<RCTView:0x7f9bbd41a840; AX=N; AX.label='Foo Bar CREATE ACCOUNT LOGIN Go to home Welcome!  Tap here to login   Foo Bar  Foo Bar  Hey, welcome back!  E-mail  Password    Incorrect email or password. LOGIN Register Reset password Login'; AX.frame={{0, 0}, {375, 667}}; AX.activationPoint={187.5, 333.5}; AX.traits='UIAccessibilityTraitNone'; AX.focused='N'; frame={{0, 0}, {375, 667}}; opaque; alpha=1>

      |  |  |  |--<RCTView:0x7f9bbd519410; AX=N; AX.label='Foo bar...

... and so on

An image from my terminal

0 个答案:

没有答案