beartest.testFilePattern: Array of glob patterns for discovering test files (default: ["**/*.test.*"])
How It Works
Discovery: The extension scans your workspace for files matching the test pattern and builds a file/folder hierarchy in the Test Explorer
Dynamic Test Discovery: When you run tests for the first time, the extension executes beartest and listens to test:start events to build the test structure inside each file
Execution: Uses beartest's event stream (test:start, test:pass, test:fail) to report test results in real-time
Debugging: Launches Node.js with the debugger attached, allowing you to set breakpoints in your test code
Limitations
Tests inside a file are only discovered after the first run (lazy discovery)
When debugging, you can only debug entire files (not individual tests within a file)
Beartest must be installed in your workspace's node_modules or in a beartest-js directory
Development
Building
npm run compile
Watching for changes
npm run watch
Testing the extension
Press F5 in VSCode to open the Extension Development Host with the extension loaded.
License
MIT
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.