42 Commits

Author SHA1 Message Date
bobo.yang
741ee9fcbf remove tests out of date 2024-07-16 16:02:27 +08:00
bobo.yang
a44af269ce feat: Add tests for findServicePort and localService
- Implement unit tests for findAvailablePort function
- Add integration tests for startLocalService and stopLocalService
- Include HTTP request test to verify local service functionality
2024-07-16 07:55:36 +08:00
kagami
f421bcae56 Add the following TODOs 2024-07-11 10:38:06 +08:00
bobo.yang
a8e125afab Refactor messageHandler.ts and workflowContextHandler.ts 2024-06-17 21:33:30 +08:00
bobo.yang
2b505b5536 Refactor DevChatConfig instantiation to use getInstance() method 2024-04-17 00:07:09 +08:00
Rankin Zheng
06a2582892 feat: Add tests for codeBlockHandler functionality
- Implement unit tests for creating and opening files with various content
- Introduce mocks for vscode API to simulate file creation and opening
- Cover edge cases such as unsupported languages and missing content
2024-04-15 22:50:51 +08:00
bobo.yang
c52c4339e0 save work 2024-04-01 17:15:44 +08:00
bobo.yang
b2bd118e33 feat: Update tests and remove deprecated tests for Claude3 integration
- Comment out mocha imports in various tests to prep for new test strategy
- Replace `before` with `beforeEach` and `after` with `afterEach` for consistency
- Remove deprecated `commandsBase.test.ts` and `dtm.test.ts` files to reflect focus on new functionality
2024-03-10 16:36:28 +08:00
bobo.yang
c645888c2b Remove topicManager.test.ts 2024-02-05 16:30:27 +08:00
bobo.yang
81c0e8be73 refactor: Simplify topic interaction in UI
- Remove topic-related views, commands, and handlers from the codebase
- Refactor code to align with the new unified topic interaction method
- Streamline UI by eliminating unnecessary elements and consolidating views
2024-02-05 11:19:01 +08:00
bobo.yang
e4cda90112 Fix content concatenation in commit_cases.py 2024-01-30 18:09:12 +08:00
bobo.yang
3a51384e5d refactor: Update ordering of properties in package.json
- Update the order property for various models in package.json
- Add new properties and descriptions
- Remove unused properties
2024-01-08 21:08:07 +08:00
bobo.yang
5a740d94e2 chore: Update UI block pattern in ui_parser.py
- Updated UI block pattern in ui_parser.py to match different formats
2024-01-03 16:19:09 +08:00
bobo.yang
bc5741d810 Update workflow command in config.yml 2023-12-19 17:04:04 +08:00
bobo.yang
b1c272a27c Remove unnecessary environment variables 2023-12-18 10:24:40 +08:00
bobo.yang
adc798c80b Translate chinese comments to english 2023-12-18 10:19:20 +08:00
bobo.yang
16faea4e78 Refactor commit_cases.py and workflow_test.py 2023-12-18 10:12:09 +08:00
bobo.yang
aee87ad495 add exit code for run_commit_tests 2023-12-18 10:12:02 +08:00
bobo.yang
2b76a11399 Fix commit message formatting 2023-12-18 10:11:50 +08:00
bobo.yang
11a8f5ab66 add test job to CI 2023-12-18 10:11:39 +08:00
bobo.yang
6405c3ed59 add test files 2023-12-18 10:10:50 +08:00
bobo.yang
dc1836510d remove command and action extension 2023-11-29 23:34:15 +08:00
bobo.yang
16046ec517 remove unused configuration config 2023-09-13 10:08:16 +08:00
bobo.yang
0ff9870cf6 Support multi llm model 2023-09-13 10:08:16 +08:00
bobo.yang
0e8e1a6e2c Delete test functions that do not have corresponding function entities. 2023-08-21 11:52:00 +08:00
bobo.yang
e2e761fd16 Separate handling for OpenAI and DevChat API keys
- Renamed and split the API key settings in package.json into DevChat and OpenAI specific keys.
- Updated the commands for setting API keys to handle OpenAI and DevChat keys separately.
- Modified the ApiKeyManager to handle and validate OpenAI and DevChat keys separately.
- Updated the status bar view to use the DevChat access key command.
- Adjusted the tests to reflect the new handling of API keys.
2023-08-03 15:09:34 +08:00
bobo.yang
bef66fb80e Update API key validation and handling
- Modified the API key validation logic to check for non-empty strings before validating.
- Updated the API key prefix from 'sk.' to 'sk-' in the ApiKeyManager and corresponding tests.
- Adjusted the test cases to reflect the new API key format.
2023-08-03 10:58:18 +08:00
bobo.yang
7fe536f9d8 Include start line in code selection context
- Added start line parameter to handleCodeSelected function.
- Updated all calls to handleCodeSelected to include the start line.
- The start line is now included in the context data for symbol references and definitions.
2023-07-24 08:16:47 +08:00
bobo.yang
3462248cb8 update unit test 2023-07-24 00:11:56 +08:00
bobo.yang
944e4e0c9b Update customAction and add tests
- Change temp subdirectory from 'devchat/context' to 'devchat/action'.
- Add check for tempFile existence before unlinking.
- Add new test cases for actionManager and customAction.
2023-07-24 00:11:56 +08:00
bobo.yang
63ea89387b Update test cases to include args property
- Add args property to commandManager.test.ts test cases.
- Add args property to customCommand.test.ts test cases.
- Update sendMessageBase.test.ts to fix expected result.
2023-07-24 00:11:56 +08:00
bobo.yang
23883abc20 Update API endpoint in apiKey.test.ts
- Replace old endpoint with the new 'https://api.devchat.ai/v1' endpoint.
2023-07-24 00:11:56 +08:00
bobo.yang
d99548b3a0 Add unit tests for actions with valid and empty args
- Add a test case for applying an action with valid args.
- Add a test case for applying an action with empty args.
2023-07-24 00:11:56 +08:00
bobo.yang
421b4e6f2e Update sendMessageBase tests after refactoring
- Removed tests for the getParentHash function in sendMessageBase.test.ts.
- This function was removed in a previous commit, so the tests are no longer needed.
2023-07-17 20:31:01 +08:00
bobo.yang
5fc21c1982 Refactor checkDevChatDependency to accept pythonCommand
- Update checkDevChatDependency to take pythonCommand as an argument.
- Modify getPipxEnvironmentPath to use pythonCommand.
- Adjust statusBarViewBase.ts to pass pythonCommand.
- Update test cases in commandsBase.test.ts accordingly.
2023-06-13 11:56:03 +08:00
bobo.yang
3ec578c7be load topic from DevChat 2023-06-06 17:52:31 +08:00
bobo.yang
a66127ffc9 Add CustomContexts class and related test cases
- Implemented CustomContexts class to handle custom contexts.
- Added methods to parse, get, and handle custom context commands.
- Created test cases for CustomContexts class in customContext.test.ts.
2023-06-02 09:58:44 +08:00
bobo.yang
b2ba9e148d Support env var and prompt input for command 2023-06-02 09:58:44 +08:00
bobo.yang
a349d8dd29 fix test cases 2023-05-31 16:57:39 +08:00
bobo.yang
ba097eab26 add unit tests for src 2023-05-31 16:10:53 +08:00
bobo.yang
562a125902 handle vscode 2023-05-31 16:10:53 +08:00
bobo.yang
cad2bbb69d refactor code 2023-05-31 16:10:53 +08:00