Skip to content

Add automated tests for C++ worker event processingAdd automated tests for C++ worker event processing - #156

Open
ankitadilawari23-tech wants to merge 1 commit into
thoth-tech:mainfrom
ankitadilawari23-tech:improve-cpp-bug-documentation
Open

ankitadilawari23-tech wants to merge 1 commit into
thoth-tech:mainfrom
ankitadilawari23-tech:improve-cpp-bug-documentation

Conversation

@ankitadilawari23-tech

Copy link
Copy Markdown

Summary

Added automated tests for the C++ worker event processor using Node.js's built-in test runner.

Changes

  • Added tests/cxxWorkerEventProcessor.test.js.
  • Added tests for directory creation, text and binary file writing, renaming, file deletion, directory deletion, standard input handling, and unexpected worker events.
  • Updated the package.json test script to run the new test file.

Testing

Executed npm.cmd test.

Result: 8 tests passed, 0 failed.

These tests verify the worker event processor's filesystem operations and input handling using a mocked worker environment.

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant