gpt4 book ai didi

node.js - nodeunit 测试和trace.gl

转载 作者:太空宇宙 更新时间:2023-11-03 22:38:37 24 4
gpt4 key购买 nike

如何追踪nodeunit使用 trace.gl 进行测试

我尝试了三种方式:

  • $ Node ~/Dropbox/tracegl.js ./path/To/My/NodeunitTests。然后在另一个控制台中从该目录运行我的单元测试。

  • $ node ~/Dropbox/tracegl.js `which nodeunit`/path/To/Test/nodeUnitTestFile_test.coffee

  • $ node ~/Dropbox/tracegl.js `which nodeunit` 引用/To/Teset/nodeUnitTestFile_test.coffee -nolib

所有 3 种方式都给出输出:

[trace.GL] See your code. This product has a commercial license.

[trace.GL] WebGL trace UI: http://localhost:2000

[trace.GL] Checking for update...[trace.GL] Serving browser JS: http://localhost:2080 up to date.

但是当我打开 url http://localhost:2000 时,我没有看到任何跟踪信息。只是初始的tracegl 状态。 no tracing information from tracegl

最佳答案

我的代码和使用tracegl 遇到了同样的问题。我必须使用 -nolib 选项才能使其正常工作。试一试。

关于node.js - nodeunit 测试和trace.gl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16672085/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com