[
https://issues.apache.org/jira/browse/GORA-481?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
cihad güzel updated GORA-481:
-----------------------------
Description:
I have implemented [https://issues.apache.org/jira/browse/GORA-437|couchdb
datastore] on {https://github.com/cguzel/gora-couchdb:my repo}. I want to add
test class. So, I must start couchdb server programmatically. But couchdb
doesn't support that to start couchdb server programmatically using java.
Situations like it may occur in the other datastore implementations. So If
docker is used, the datastore starts for testing.
{https://github.com/testcontainers/testcontainers-java:TestContainers} is a
Java library that supports JUnit tests, providing lightweight, throwaway
instances of common databases that can run in a Docker container.
So, GORA should support
{https://github.com/testcontainers/testcontainers-java:Test Containers}
There is a couchdb docker container
{https://hub.docker.com/r/klaemo/couchdb/:Couchdb container:here}
was:
I have implemented {https://issues.apache.org/jira/browse/GORA-437|couchdb
datastore} on {https://github.com/cguzel/gora-couchdb:my repo}. I want to add
test class. So, I must start couchdb server programmatically. But couchdb
doesn't support that to start couchdb server programmatically using java.
Situations like it may occur in the other datastore implementations. So If
docker is used, the datastore starts for testing.
{https://github.com/testcontainers/testcontainers-java:TestContainers} is a
Java library that supports JUnit tests, providing lightweight, throwaway
instances of common databases that can run in a Docker container.
So, GORA should support
{https://github.com/testcontainers/testcontainers-java:Test Containers}
There is a couchdb docker container
{https://hub.docker.com/r/klaemo/couchdb/:Couchdb container:here}
> Using Docker For Unit Testing
> -----------------------------
>
> Key: GORA-481
> URL: https://issues.apache.org/jira/browse/GORA-481
> Project: Apache Gora
> Issue Type: New Feature
> Reporter: cihad güzel
>
> I have implemented [https://issues.apache.org/jira/browse/GORA-437|couchdb
> datastore] on {https://github.com/cguzel/gora-couchdb:my repo}. I want to add
> test class. So, I must start couchdb server programmatically. But couchdb
> doesn't support that to start couchdb server programmatically using java.
> Situations like it may occur in the other datastore implementations. So If
> docker is used, the datastore starts for testing.
> {https://github.com/testcontainers/testcontainers-java:TestContainers} is a
> Java library that supports JUnit tests, providing lightweight, throwaway
> instances of common databases that can run in a Docker container.
> So, GORA should support
> {https://github.com/testcontainers/testcontainers-java:Test Containers}
> There is a couchdb docker container
> {https://hub.docker.com/r/klaemo/couchdb/:Couchdb container:here}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)