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

 ##########
 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:
   would it be possible to add a new command where we can specify an app or 
file to test.

----------------------------------------------------------------
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