Skip to content

[WIP] Add test for DummyJSONService with black box methodology#9

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/add-test-dummyjsonservice
Closed

[WIP] Add test for DummyJSONService with black box methodology#9
Copilot wants to merge 1 commit into
mainfrom
copilot/add-test-dummyjsonservice

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 2, 2026

Plan for Adding DummyJSONService Black Box Test

  • Install testing framework (Vitest) and testing utilities
  • Set up MSW (Mock Service Worker) for API mocking
  • Create test file for DummyJSONService
  • Implement black box tests for all four methods:
    • getProducts() with default and custom parameters
    • getProduct(id) with valid ID
    • getCategories()
    • getProductsByCategory(category)
  • Test error handling scenarios
  • Add test script to package.json
  • Run tests to verify implementation
  • Update configuration files as needed
Original prompt

Add a test for DummyJSONService with a focus on black box methodogly testing


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

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.

2 participants