Thursday, July 5, 2012

eunit truncates terms when outputting diff

Apparently this is not eunit's fault, but rather something to do with the shell. There is a workaround which is to output to file instead of the shell:

Use eunit with surefire:
eunit:test(my_module, [{report,{eunit_surefire,[{dir,"."}]}}]).

this will create a file called TEST-something.xml which will print out the full terms if a test fails

If you are running eunit via dialyzer like this:


$> rebar eunit

Then you can create the xml files by adding this line to your rebar.config:

{eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.

This will make the tests more verbose (remove the verbose option if you do not want that).
It will also create the xml files in the same directory as the beam files created for the test which is called .eunit.

For example if you have the following structure for your app:
| my_app
|-- src
|-- ebin
| -- .eunt

2 comments:

Blog27999 said...

Your Affiliate Profit Machine is ready -

Plus, making money online using it is as simple as 1-2-3!

It's super easy how it works...

STEP 1. Choose which affiliate products you want to promote
STEP 2. Add PUSH button traffic (this ONLY takes 2 minutes)
STEP 3. Watch the system explode your list and sell your affiliate products all for you!

So, do you want to start making money??

Click here to check it out

Unknown said...

Your Affiliate Profit Machine is waiting -

Plus, earning money online using it is as simple as 1, 2, 3!

Here are the steps to make it work...

STEP 1. Input into the system what affiliate products the system will promote
STEP 2. Add push button traffic (it LITERALLY takes JUST 2 minutes)
STEP 3. See how the system explode your list and sell your affiliate products for you!

Do you want to start making money??

The solution is right here