[
https://issues.apache.org/jira/browse/COUCHDB-2612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15565151#comment-15565151
]
Alexander Shorin commented on COUCHDB-2612:
-------------------------------------------
Hi, [~katsel]!
That's great! Well, basically you need to rewrite [this python
code](https://github.com/apache/couchdb-mango/tree/master/test) in Erlang.
Mostly it's all about calling CouchDB HTTP API. So here you have two options;
1. Do the same: call HTTP API from Erlang and do the tests.
2. Avoid HTTP API and test the API behind httpd handlers.
First is simple, but
[boring](https://github.com/apache/couchdb-couch/blob/master/test/couchdb_mrview_cors_tests.erl).
There are no much guidance. Probably, you can try
[katt](https://github.com/for-GET/katt) to simplify the process.
For second you can check
[mrview](https://github.com/apache/couchdb-couch-mrview/tree/master/test) for
an example - it avoids http requests, but also checks everything behind them in
more nicer way.
> Port mango tests from python to erlang
> --------------------------------------
>
> Key: COUCHDB-2612
> URL: https://issues.apache.org/jira/browse/COUCHDB-2612
> Project: CouchDB
> Issue Type: Improvement
> Components: Mango, Test Suite
> Reporter: Alexander Shorin
>
> Currently they are done in Python which means they are out of our make check
> run and we cannot be sure that our releases will ship with working mango.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)