Using rebar3 eunit it is able to handle -include("some_file.hrl") in the tests, but this doesn't work with rebar3 ct. For some reason when I use rebar3 ct it tries to compile my eunit tests and fails because it can't find the .hrl files used in the eunit tests. ...can't find include file "some_file.hrl" What am I doing wrong? Why is it compiling eunit tests when I'm trying to run CT tests?
Using Rebar3 Common Test does not find hrl files in the include folder but eunit does
868 views Asked by casillic At
1
There are 1 answers
Related Questions in ERLANG
- Using gleam, cannot import 'gleam/otp/process'
- Zig Concurrency Vs Erlang Concurrency, is Zig less efficient than Erlang?
- Creaating a new Key Value dict from previous dict
- How to execute an exit function before closing rebar3 shell?
- rebar3 does not compile anything in `src` directory
- Ejabberd Migration from 23 to 24
- How to use compiled erlang modules in an elixir project?
- ejabberd_sql:handle_reconnect/2:491 odbc connection failed ejabberd
- Lisp Flavored Erlang: Can't find include lib include/ltest-macros.lfe
- Signing key for RabbitMQ
- Rabbitmq fails to start and getting Erlang eaacces error
- Erlang: binary_to_term explanation
- How to extend emqx clientInfo to get more fields during HTTP Authorization
- Transforming `erl_parse:abstract_form()` to `erl_syntax:syntaxTree()`
- Who is the sender of Erlang's trace messages and what can I assume based on it?
Related Questions in EUNIT
- Build rabbitmq-server and erlang with FIPS enabled from source
- How to use debugMsg in eunit and how to print something within the eunit testing although the test times out
- IntelliJ Erlang "Unresolved macros"
- In Erlang's EUnit, assert that a function was called with an anonymous function
- rebar eunit can't find include lib in erlang:latest docker container
- How to setup tests with the appropriate code using rebar3?
- Why is Eunit insisting my function is returning {ok, value} when it's not?
- How do I disable the error logger in EUnit test cases?
- Why am I getting error while running a eunit test?
- How do I meck the same function with multiple sets of parameter values?
- Print test fixture description in erlang eunit failure
- Testing a gen_server module using Common Test
- How can I progressively set up a mock using Meck?
- Using Rebar3 Common Test does not find hrl files in the include folder but eunit does
- Error Report from a terminated process (expected to be normal)
Related Questions in COMMON-TEST
- Unable to run ct_netconfc_SUITE testcase
- Killing a gen_server without failing the Common Test
- Reason: undef while running common tests in erl console [Erlang]
- Named gen_server process created in init_per_suite is not present in tests
- How do I log to stdout or stderr from an Erlang common test suite?
- How to start ct_logs in common_test
- How to debug or get verbose output from a ct test?
- How to add the return value to the cth_surefire XML report?
- Structuring configuration for apps in Common Test suites
- Testing a gen_server module using Common Test
- Erlang Common Test: Get test runtime stats across all test suites
- Using Rebar3 Common Test does not find hrl files in the include folder but eunit does
- Erlang - Skip test suite immediately in common test
- finding lib directory during common test
- Using Rebar3 how to use Common Test so it places the beam files in _build section not test folder?
Related Questions in REBAR3
- How to execute an exit function before closing rebar3 shell?
- rebar3 does not compile anything in `src` directory
- {noproc,{gen_server{call.... Error in simple rebar3/Erlang application with a gen_server
- Executing rebar3 throwing escript exception
- rebar3 release cannot find target build when rebar.config base_dir set
- Issue with running a compiled rebar3 erlang application with erl -pa
- Rebar3 failed to fetch dependencies in docker container
- Authenticity error when trying to install Rebar
- How to connect a windows erlang project to ubuntu's ejabberd?
- Rebar3 Docker "Rebar dependency inets could not be loaded for reason no such file"
- Kernel parameters that use rebar3 in erlang do not take effect
- Failed to start Ranch listener https_listener in ranch_ssl:listen, for reason eacces (permission denied) on Linux
- Is there any way create ".ez" file using rebar3 in erlang?
- Get hidden user input in erlang app running thru rebar3 shell
- make on ChicagoBoss failing with escript: exception error: undefined function rebar:main/1
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Quick answer:
Additional compile options for eunit. erl_opts can be used like this with rebar3:
https://github.com/erlang/rebar3/blob/fb363cd8de68e9113e407ac0be049cacdd9ddd07/rebar.config.sample#L165
More about this subject
rebar3 change the way eunit tests are performed.
Original rebar2 behavior was to compile your project and anything in the test directory (including subdirectories) to the directory .eunit and then run tests from every file. That's why your include files directive may work under rebar2 simply because all files are included and centralized.
Rebar3 instead, by default, sets Tests to [{application, yourapp}].The eunit command of rebar3 first does some preparation work and after this calls eunit:test(Tests, EUnitOpts).
Notice that:
http://www.rebar3.org/docs/from-rebar-2x-to-rebar3
Since rebar3 ct will take all this in account, being more configurable and less automated (not including all of your applications and deps) this may happen to you.