Include common tests in Erlang release

I have a project written in Erlang (and releases generated by rebar) and I want to do integration testing in an environment which is as close as possible to the deployment environment.

The project pulls in a few other Erlang applications as dependencies. One of these applications has common tests in test/. It is these tests I wish to run in the release.

Is there maybe a way to have the common tests included in a generated release, and somehow run them on the target instance?

I don't want to run these tests on the application in deps/, but on the actual release itself.

Thanks!

Answers


Leave the tests out of the release. Build the release, then start it from a CT run (test_server has a nice way to start slave nodes). Now you can call into the other node to execute test cases.

I find that this method is often easier to get working.


Need Your Help

Invoking a WPF command from a WPF-embedded Winforms control

c# wpf datagrid command winforms-interop

I have a WinDataGrid class that extends from an Infragistics UltraGrid. I have embedded my WinDataGrid within a WPF usercontrol using WindowsFormHost. When rows are selected, I need to invoke a

animating a custom CALayer property

iphone core-animation calayer

I'm trying to define an abstract layer property, angle, based on the existing layer property position. Basically it describes the orientation of the layer from the center of a circle. I did like the