Commit graph

24 commits

Author SHA1 Message Date
google-labs-jules[bot]
ca66d265d1 feat: Add RSpec test adapter and perform project cleanup
This commit introduces a new test adapter for the RSpec testing framework
and includes general code cleanup.

RSpec Adapter Features:
- Implements the `Runner` trait for RSpec.
- Uses `tree-sitter-ruby` for test discovery from `*_spec.rb` files,
  identifying `describe`, `context`, and `it` blocks.
- Executes RSpec tests using the `rspec -f json` command and parses the
  JSON output to generate diagnostics for failed tests.
- Detects RSpec workspaces by looking for `Gemfile` or `.rspec` files.
- Includes a demo RSpec project (`demo/rspec_project`) for testing.
- Adds integration tests (`crates/adapter/tests/rspec_test.rs`)
  covering workspace detection, test discovery, and diagnostic parsing.

Cleanup and Fixes:
- I refactored the RSpec adapter to be fully synchronous, resolving previous
  compilation issues with the `Runner` trait.
- I removed unused imports and dead code in the RSpec adapter files.
- I ensured the `crates/adapter/src/runner/phpunit.rs` uses the correct
  tree-sitter PHP language function, confirming a previous fix.
- I verified that the entire project builds successfully using
  `cargo build --all-targets`.
- I confirmed all RSpec-specific tests pass. Pre-existing test failures
  in Jest, Node, and Vitest adapters remain and are noted as out of scope
  for this change.

The implementation adheres to the synchronous nature of the `Runner`
trait, ensuring correct integration with the existing adapter framework.
2025-05-24 14:52:56 +00:00
kbwo
aa4883e038 feat(adapter): add diagnostics to show which test failed 2024-11-30 18:22:53 +09:00
kbwo
6f1fc1f03a chore: update each settings for demo 2024-11-10 15:11:25 +09:00
kbwo
575f3ee661 feat: get configuration from toml file 2024-11-09 18:18:53 +09:00
Kodai Kabasawa
7da5b98850
Merge pull request #43 from kbwo/fix/data-structure
Change adapterCommand schema
2024-10-30 23:43:36 +09:00
kbwo
5211310b7f chore(demo): add example config of helix 2024-10-26 00:18:13 +09:00
kbwo
fa78f5faec chore(demo): update editor config according to previous schema change 2024-10-25 00:42:11 +09:00
kbwo
48c2388d95 chore(demo): update vscode settings 2024-10-19 16:57:56 +09:00
kbwo
cf926f56a2 fix(adapter): support nested namespace definition 2024-10-19 16:50:52 +09:00
kbwo
7ce2e97df6 fix(adapter): fix top level tests to not be in namespace 2024-10-19 13:41:09 +09:00
kbwo
8bfe0e9435 feat: implement adapter for node --test 2024-10-19 12:12:11 +09:00
kbwo
d275c28e88 chore(demo): add demo code of node --test 2024-10-18 00:04:40 +09:00
kbwo
570a755e50 chore(demo): update vscode settings 2024-10-14 21:46:50 +09:00
kbwo
54c3ca3e29 docs: update README 2024-10-14 00:00:56 +09:00
kbwo
7935caf4b3 chore: update specification 2024-10-13 23:41:51 +09:00
kbwo
96855b782c chore: change adapter config specification
simplify key names
2024-10-12 17:17:15 +09:00
kbwo
8f4097aab3 chore: add vscode settings for debugging with vscode-tesitng-ls 2024-09-23 17:56:16 +09:00
kbwo
3e3d4c5db1 feat: implement phpunit adapter 2024-09-23 17:56:13 +09:00
kbwo
ef51778b60 test(adapter): prevent test failure 2024-08-13 21:47:55 +09:00
kbwo
7c5e365167 chore: update demo 2024-08-04 22:14:05 +09:00
kbwo
4e1b802485 refactor(demo): remove yarn related files 2024-08-04 15:46:31 +09:00
kbwo
6cb4fcbd92 feat(adapter): implement adapter for deno 2024-07-21 15:58:55 +09:00
kbwo
b887d653a2 feat(adapter): add adapter for cargo-nextest
close #18
2024-07-16 00:23:19 +09:00
kbwo
1d6dd6623e refactor: rename directory 2024-07-15 19:13:19 +09:00