diff options
-rw-r--r-- | README.md | 5 | ||||
-rw-r--r-- | erlang.mk | 9 | ||||
-rw-r--r-- | packages.v1.tsv | 3 | ||||
-rw-r--r-- | packages.v1.txt | 3 |
4 files changed, 15 insertions, 5 deletions
@@ -180,6 +180,11 @@ the same folder as expected. documented in one place; follow the links to get to the options for the various operations of the documentation generation. +`TEST_ERLC_OPTS` allows you to change the `erlc` compilation +options that are used for building the project for testing, but +also the tests themselves. Unlike `ERLC_OPTS` it doesn't consider +warnings to be errors and does not warn when `export_all` is used. + `CT_SUITES` is the list of common_test suites to run when you use the `make tests` command. If your suite module is named `ponies_SUITE` then you only need to put `ponies` in the list. @@ -214,11 +214,14 @@ clean-docs: $(foreach dep,$(TEST_DEPS),$(eval $(call dep_target,$(dep)))) +TEST_ERLC_OPTS ?= +debug_info +warn_export_vars +warn_shadow_vars +warn_obsolete_guard +TEST_ERLC_OPTS += -DTEST=1 -DEXTRA=1 +'{parse_transform, eunit_autoexport}' + build-test-deps: $(ALL_TEST_DEPS_DIRS) @for dep in $(ALL_TEST_DEPS_DIRS) ; do $(MAKE) -C $$dep; done build-tests: build-test-deps - $(gen_verbose) erlc -v $(ERLC_OPTS) -o test/ \ + $(gen_verbose) erlc -v $(TEST_ERLC_OPTS) -o test/ \ $(wildcard test/*.erl test/*/*.erl) -pa ebin/ CT_OPTS ?= @@ -233,7 +236,7 @@ CT_RUN = ct_run \ CT_SUITES ?= define test_target -test_$(1): ERLC_OPTS += -DTEST=1 +'{parse_transform, eunit_autoexport}' +test_$(1): ERLC_OPTS = $(TEST_ERLC_OPTS) test_$(1): clean deps app build-tests @if [ -d "test" ] ; \ then \ @@ -245,7 +248,7 @@ endef $(foreach test,$(CT_SUITES),$(eval $(call test_target,$(test)))) -tests: ERLC_OPTS += -DTEST=1 +'{parse_transform, eunit_autoexport}' +tests: ERLC_OPTS = $(TEST_ERLC_OPTS) tests: clean deps app build-tests @if [ -d "test" ] ; \ then \ diff --git a/packages.v1.tsv b/packages.v1.tsv index b20d1aa..40de701 100644 --- a/packages.v1.tsv +++ b/packages.v1.tsv @@ -1,10 +1,11 @@ bullet https://github.com/extend/bullet http://ninenines.eu Simple, reliable, efficient streaming for Cowboy. cowboy https://github.com/extend/cowboy http://ninenines.eu Small, fast and modular HTTP server. cowlib https://github.com/extend/cowlib http://ninenines.eu Support library for manipulating Web protocols. -erlydtl https://github.com/evanmiller/erlydtl https://code.google.com/p/erlydtl/ ErlyDTL compiles Django Template Language to Erlang bytecode. +erlydtl https://github.com/erlydtl/erlydtl https://github.com/erlydtl/erlydtl Django Template Language for Erlang. farwest_core https://github.com/extend/farwest_core http//ninenines.eu Modern web application development platform. farwest_ui https://github.com/extend/farwest_ui http://ninenines.eu Development and administration UI for Farwest. gun https://github.com/extend/gun http//ninenines.eu Asynchronous SPDY, HTTP and Websocket client written in Erlang. jsx https://github.com/talentdeficit/jsx https://github.com/talentdeficit/jsx An Erlang application for consuming, producing and manipulating JSON. ranch https://github.com/extend/ranch http://ninenines.eu Socket acceptor pool for TCP protocols. sheriff https://github.com/extend/sheriff http://ninenines.eu Parse transform for type based validation. +proper https://github.com/manopapad/proper http://proper.softlab.ntua.gr PropEr: a QuickCheck-inspired property-based testing tool for Erlang. diff --git a/packages.v1.txt b/packages.v1.txt index b20d1aa..40de701 100644 --- a/packages.v1.txt +++ b/packages.v1.txt @@ -1,10 +1,11 @@ bullet https://github.com/extend/bullet http://ninenines.eu Simple, reliable, efficient streaming for Cowboy. cowboy https://github.com/extend/cowboy http://ninenines.eu Small, fast and modular HTTP server. cowlib https://github.com/extend/cowlib http://ninenines.eu Support library for manipulating Web protocols. -erlydtl https://github.com/evanmiller/erlydtl https://code.google.com/p/erlydtl/ ErlyDTL compiles Django Template Language to Erlang bytecode. +erlydtl https://github.com/erlydtl/erlydtl https://github.com/erlydtl/erlydtl Django Template Language for Erlang. farwest_core https://github.com/extend/farwest_core http//ninenines.eu Modern web application development platform. farwest_ui https://github.com/extend/farwest_ui http://ninenines.eu Development and administration UI for Farwest. gun https://github.com/extend/gun http//ninenines.eu Asynchronous SPDY, HTTP and Websocket client written in Erlang. jsx https://github.com/talentdeficit/jsx https://github.com/talentdeficit/jsx An Erlang application for consuming, producing and manipulating JSON. ranch https://github.com/extend/ranch http://ninenines.eu Socket acceptor pool for TCP protocols. sheriff https://github.com/extend/sheriff http://ninenines.eu Parse transform for type based validation. +proper https://github.com/manopapad/proper http://proper.softlab.ntua.gr PropEr: a QuickCheck-inspired property-based testing tool for Erlang. |