You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by kxepal <gi...@git.apache.org> on 2015/12/02 02:42:02 UTC
[GitHub] couchdb pull request: Replace etap tests with eunit
GitHub user kxepal opened a pull request:
https://github.com/apache/couchdb/pull/374
Replace etap tests with eunit
Continue of #253 work with suggested fixes.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kxepal/couchdb 1963-eunit-1.7
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb/pull/374.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #374
----
commit 565d9262c34a91b83a3dbd7e413478499da6e980
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-15T20:08:36Z
Add run script to execute eunit tests
Usage is the same as for test/etap/run:
./test/couchdb/run -v ${PATH}
-v runs in verbose mode, as etap does. Also, you can use make for that:
make check-eunit
which will run tests everywhere in project where Makefile contains
check-eunit subcommand definition.
The ${PATH} thing could be single file or directory. The latter should
contains *_tests.erl files which would be compiled and executed by
eunit.
The *_tests.erl
The reason of compiling on run instead of using autoconf for that is
to simplify tests developing and avoid situations, when you'd fixed
the test or add new one, but forgot to remove/compile beam file.
All test_*.beam files are been stored in test/couchdb/ebin directory,
the temporary test files will be places to test/couchdb/temp one.
Both directories will be removed by make clean/distclean command.
commit c44cbbaf92a8a62badb91c429b6246c622102500
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-15T23:46:16Z
Add common header for eunit test files
Because include path "." has higher priority than any other custom
paths, generated during `configure` phase couch_eunit.hrl contains
build and source paths which aren't used for `make distcheck` causing
various failures.
commit fe779c02261d6b1728bfaadf1c16a9805dc8f7ae
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-16T00:45:38Z
Port 001-load.t etap test suite to eunit
commit 99a8fc1d17b2c08599699bb6b06f23d35fd39df4
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-16T01:19:05Z
Port 002-icu-driver.t etap test suite to eunit
See setup/0 comment for specific info about loading
couch_icu_driver with eunit.
commit eba9543839c9f3cd60ee7fa749632da8e632aeb6
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-16T14:38:56Z
Port 010-file-basics.t and 011-file-headers.t etap test suites to eunit
Both merged into single suite since they tests single target and shares
common bits.
commit ed610c730b1314bb942fd3aed9422e7e48e2ded3
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-16T23:28:14Z
Port 020-btree-basics.t and 021-btree-reductions.t etap suites to eunit
Both merged into single suite since they tests single target and shares
common bits.
commit a0508133dd7c51e70bb31954cb823659712e363a
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-16T23:42:01Z
Port 030-doc-from-json.t and 031-doc-to-json.t etap suites to eunit
Both merged into single suite since they tests single target and shares
common bits.
commit 99b9a839e6c59f346464a74f417e84bff98a620e
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-17T00:16:38Z
Port 040-util.t etap test suite to eunit
commit 263f1882ad1ca2d3427e1d66276d866f7b4967f1
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-17T00:23:25Z
Port 041-uuid.t etap test suite to eunit
Config files are removed in favor of using couch_config API instead.
commit f1e285b964ac472bc7f31cf09de44568e77465de
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-18T10:04:08Z
Port 042-work-queue.t etap test suite to eunit
Etap tests were made in flow style, testing the same things multiple
times without real need. For eunit they are split into small test cases
to focus on testing goals.
Timeout on receive is decreased from 3000 to 100.
commit 637935d34a8d3161de54f2e0410dbd68e35666b8
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-18T10:35:58Z
Port 043-find-in-binary.t etap test suite to eunit
It been merged into couch_util_tests suite.
commit 35610241df4b7fcc595e10668796e984d88af504
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-18T10:45:05Z
Port 050-stream.t etap test suite to eunit
commit d832a905f3fa827a2b6a8e8a656df4eddf7d3558
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-18T10:53:03Z
Port 06[0-5]-kt-*.t etap test suites to eunit
All merged into single suite since they're test the same module.
commit 1765f231f3338bd055fd26700c8f7ba87942ace7
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-19T01:36:06Z
Port 070-couch-db.t etap test suite to eunit
Fix ERL_LIB environment variable setting. Add ?tempdb macros for
unique temporary database name generation.
commit 1a313793e915f907710c6ecedab0f4f9bf18a7b0
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-20T03:16:41Z
Port 072-cleanup.t etap test suite to eunit
requests functions from test_util were moved to test_request module
with nicer and simpler API.
commit 7623f97272be7e048bb87515ab629bb8fb9e44ca
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-20T03:19:22Z
Port 073-changes.t etap test suite to eunit
For heartbeats test they don't being counted anymore since their
amount is heavy depends from the overall system performance and some
assertions may fail or not because of that. Instead of this, we just
ensure that their amount is going to increase over the time.
commit 535a7808e9f799c4b11d6b03b529844c4b434b20
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-21T14:58:12Z
Port 074-doc-update-conflicts.t etap test suite to eunit
Timeout decreased, added 10K clients case
commit fb4a7747018e5f23c5c6debcff3df64ef76f8882
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-22T09:07:24Z
Port 075-auth-cache.t etap test suite to eunit
Timeouts are removed.
commit 8d8d326e29b07ab6dd400259163ed767a11e4066
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-22T16:17:47Z
Port 076-file-compression.t etap test suite to eunit
The original test suite was decoupled into compaction and comparison
cases.
commit 39c37ece99e0bedd3595040c019d678d35c20741
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-22T16:31:09Z
Port 077-couch-db-fast-db-delete-create.t etap test suite to eunit
Merged into couch_db_tests suite.
commit 5c5bfce9a0eccd2ca3c686a3025f76922cf45d50
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-23T05:29:22Z
Port 080-config-get-set.t etap test suite to eunit
commit b817a9d7fa7e684e27c6a6d76abbc022b552adda
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-25T18:02:19Z
Port 081-config-override.t etap test suite to eunit
Merged into couch_config_tests suite.
Setup fixtures.
commit 70e2813343826c4af445adb7074dd40e57ae8ad5
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-26T05:26:22Z
Port 082-config-register.t etap test suite to eunit
Merged into couch_config_tests suite.
commit ed10866b4c546e158ecfa8f81ecc48afec8169d5
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-26T05:46:06Z
Port 083-config-no-files.t etap test suite to eunit
Merged into couch_config_tests suite.
commit 4a0ce96dfff3a4c7636437c1f1171c502e787622
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-26T16:23:41Z
Port 090-task-status.t etap test suite to eunit
Split huge test case into multiple ones. Fix issue with get_task_prop
when Acc may be reset if searched task isn't last in the list.
commit b67b87e73a69c43ea7f97b21350412970c13362b
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-26T16:59:45Z
Port 100-ref-counter.t etap test suite to eunit
commit f47751d23457176d8fbf179df83908fd9fac6b57
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-26T19:57:38Z
Port 120-stats-collect.t etap test suite to eunit
commit 3a96ebc7192d08adeb61ab381202005d17e0657f
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-27T14:27:53Z
Port 121-stats-aggregates.t etap test suite to eunit
Merged into couch_stats_tests suite.
commit dd01551b9d2b042f7beac525fc32a499e4194bcf
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-05-28T01:32:11Z
Port 130-attachments-md5.t etap test suite to eunit
Add random document id generator macros.
Have to use handmade http client instead of ibrowse since it makes too
complicated sending chunked requests.
commit 3a91b3a9250abb474ac7c690225bda233c83659e
Author: Alexander Shorin <kx...@apache.org>
Date: 2014-06-02T21:51:46Z
Port 140-attachments-comp.t etap test suite to eunit
- Merge into couchdb_attachments_tests suite;
- Add PUT requests to test_request util;
- Remove dependency from files outside fixtures directory;
- Group test cases to reduce amount of duplicate code;
- Fix hidden issue with gzip encoding: for encoding_length stub info
check using zlib:gzip on 2KiB+ files leads to mismatch by 2-4 bytes
and this difference grows with file size. Using gzip fun code from
couch_stream solves the issue.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] couchdb pull request: Replace etap tests with eunit
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/couchdb/pull/374
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---