Jump to content
Gallaecio

Running the JavaScript Automated Tests

Recommended Posts

I would like to run the current JavaScript automated tests, as a first step to write my own, however I do not think I am running them.

The reason why I think I am not running them is because

./binaries/system/test --help-tests

does not list UnitAI, which is the specific JavaScript test file I wanted to extend with new test cases.

So, is the 

./binaries/system/test

command running the JavaScript automated tests as well? If so, how can I verify so? Otherwise, how can I run the JavaScript automated tests?

Share this post


Link to post
Share on other sites

Replying to myself based on responses on IRC by @Itms and @elexis:

JavaScript tests are indeed executed by the test executable. They are listed as a single test, “TestComponentScripts test_scripts”.

You can verify so by adding an error to them, such as “TS_ASSERT(false);” or a syntax error.

 

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×