Skip to content

Instantly share code, notes, and snippets.

@KlausTrainer
Created September 13, 2015 15:49
Show Gist options
  • Save KlausTrainer/2fb1d980cd267c6538fe to your computer and use it in GitHub Desktop.
Save KlausTrainer/2fb1d980cd267c6538fe to your computer and use it in GitHub Desktop.
diff --git a/test/couch_doc_json_tests.erl b/test/couch_doc_json_tests.erl
index 56587cd..85a931a 100644
--- a/test/couch_doc_json_tests.erl
+++ b/test/couch_doc_json_tests.erl
@@ -17,9 +17,10 @@
json_doc_test_() ->
+ TestCtx = test_util:start(?MODULE),
{
setup,
- fun() -> test_util:start(?MODULE) end, fun test_util:stop/1,
+ fun() -> TestCtx end, fun test_util:stop/1,
[
{
"Document from JSON",
@KlausTrainer
Copy link
Author

Here's how to run the test separately:

rebar setup_eunit && BUILDDIR=$(pwd) rebar -r eunit apps=couch tests="json_doc_test"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment