Skip to content

Option to disable log intercepting and/or interactive mode #96

@kleinfreund

Description

@kleinfreund

While working on the colorjs.io package, I frequently run into the problem that logs are inaccessible/hidden and it seemingly relates to interactive mode and/or the log interception.

For example, I'm running npx htest ./test/parse.js (I've installed htest 0.0.17 in colorjs.io locally) and see "Color parse Tests ✅ 129/129 PASS 8 messages (4.9 ms)", but expanding the first tree node only shows one test group (color() in my scenario) even though the parse test suite has many more test groups. I can only assume that there's an exception somewhere that's being intercepted and that somehow breaks the interactive mode, but I can only guess at that because there's virtually no further output.

Disabling the color() test group in an attempt to get to some output worsens the problem. I now see "Color parse Tests ✅ 80/80 PASS (4.4 ms)" but now I can't even expand the first tree node.

I think it would be helpful to be able to turn off interactive mode and just log things as they come (perhaps while still collecting output of the test runner until the test run is complete). This way, one would be able to see logged exceptions even if something in the interactive mode breaks.

Notes & references

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions