iilyak commented on a change in pull request #2039: Exunit simplified
URL: https://github.com/apache/couchdb/pull/2039#discussion_r288952320
 
 

 ##########
 File path: Makefile
 ##########
 @@ -173,6 +173,20 @@ eunit: couch
          $(REBAR) -r eunit $(EUNIT_OPTS) apps=$$dir || exit 1; \
        done
 
+.PHONY: exunit
+# target: exunit - Run ExUnit tests
+exunit: export BUILDDIR = $(shell pwd)
+exunit: export MIX_ENV=test
+exunit: export ERL_LIBS = $(shell pwd)/src
+exunit: export ERL_AFLAGS = -config $(shell pwd)/rel/files/eunit.config
+exunit: export COUCHDB_QUERY_SERVER_JAVASCRIPT = $(shell pwd)/bin/couchjs 
$(shell pwd)/share/server/main.js
 
 Review comment:
   Fixed. The syntax is:
   ```
   make exunit 
tests=src/couch/test/exunit/crud_test.exs,src/fabric/test/exunit/crud_test.exs:line
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to