# nxt.properties for unit-tests

**URL:** <https://talk.jelurida.com/t/nxt-properties-for-unit-tests/170>\
**Category:** Developers\
**Created:** [28 February 2021 12:05 UTC](https://talk.jelurida.com/t/nxt-properties-for-unit-tests/170 "2021-02-28T12:05:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malnemark](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@Malnemark](https://talk.jelurida.com/u/Malnemark)\
**Post date:** [28 February 2021 12:05 UTC](https://talk.jelurida.com/t/nxt-properties-for-unit-tests/170/1 "2021-02-28T12:05:45Z")

</div>

Hello all,

I am following your instructions under [Lightweight Contracts](https://ardordocs.jelurida.com/Lightweight_Contracts) to get IntelliJ IDEA running on Ubuntu.

However, starting the contractrunnersuite fails with 81 tests ignored and 1 failed. Looking through the output, I find this exception:

> User home folder /home/mal/Ardor  
> Loading nxt-default.properties from classpath  
> Loading nxt-installer.properties from classpath  
> Loading nxt.properties from test/java/unit-tests-nxt.properties  
> java.lang.IllegalArgumentException: Error loading nxt.properties from test/java/unit-tests-nxt.properties  
> at nxt.Nxt.loadProperties(Nxt.java:174)  
> at nxt.Nxt.(Nxt.java:157)  
> ....

I wonder where I should put a nxt.properties file, and what the content should be. Thanks for your help

---

<div class="post-metadata">

**Author:** ![lior.yaffe](https://talk.jelurida.com/letter_avatar_proxy/v4/letter/l/ecb155/32.png) [@lior.yaffe](https://talk.jelurida.com/u/lior.yaffe)\
**Post date:** [28 February 2021 18:37 UTC](https://talk.jelurida.com/t/nxt-properties-for-unit-tests/170/2 "2021-02-28T18:37:13Z")

</div>

It's a bug. To workaround it create a file named unit-tests-nxt.properties in the folder test/java under the Ardor project root folder and add to a single line of text starting with # or keep the file completely empty.  
The ContractRunnerSuite should run now with a few failures and you can add your own unit tests.

Of course we will fix these problems for the next release.
