[FEATURE] Add integration tests to Redis
#543
Labels
cache
⚙️ CI/CD
Continuous Integration/Continuous Deployment processes
communications
🎲 database
Database-related operations
📝 documentation
Tasks related to writing or updating documentation
enhancement
New feature or request
gitauto
GitAuto label to trigger the app in a issue.
good first issue
Good for newcomers
hacktoberfest
Participation in the Hacktoberfest event
help wanted
Extra attention is needed
.NET
Pull requests that update .net code
Redis
tests
Tests
Description
We need to add integration tests for Redis to ensure that our application interacts correctly with a real Redis instance. This will involve creating a new integration test project and setting up a Redis instance using Docker Compose and AppVeyor.
Steps to Implement
Create Integration Tests Project:
CrispyWaffle.IntegrationTests
to the solution. It already existsCache/Redis
and add a test classRedisCacheRepositoryTests
to test Redis interactions.Configure Redis for Testing:
docker-compose.yml
already has a Redis instance.Update AppVeyor Configuration:
appveyor.yml
) to set up a Redis instance for CI builds.Tech Notes
Setting Up Redis with Docker Compose:
docker-compose.yml
file in the root of your project with the following content to spin up a Redis instance:Configure AppVeyor:
Update the
appveyor.yml
file to include Redis setup. You can use the following configurations:This configuration installs Redis 5.0.14 and starts the Redis server on the AppVeyor build machine.
Implement Tests:
CrispyWaffle.IntegrationTests
, implement tests inRedisCacheRepositoryTests
to interact with the Redis instance.Additional Notes
docker-compose.yml
file andappveyor.yml
configurations are well-documented and maintained.Screenshots or Diagrams
No response
Additional information
start redis-server on appveyor
The text was updated successfully, but these errors were encountered: