enso/test/Base_Tests
Hubert Plociniczak f82e8020fe
Arrow builder is not an Array (#9358)
Follow up on #9150 - making sure that Arrow builder is not accidentally treated as an Array by disallowing reading elements.

# Important Notes
Also making sure that the length of the resulting Arrow Array is consistent with what user requested.
2024-03-13 14:37:41 +00:00
..
data Add xml.write tests and .write to XML_Element (#9332) 2024-03-11 16:26:06 +00:00
polyglot-sources/enso-test-java-helpers/src/main/java/org/enso IsNa to IsNothing, missing to Nothing in Table code. (#9154) 2024-02-26 10:52:07 +00:00
src Arrow builder is not an Array (#9358) 2024-03-13 14:37:41 +00:00
package.yaml Rename Tests to Base_Tests to be more descriptive (#8781) 2024-01-17 16:19:19 +01:00
README.md Rename Tests to Base_Tests to be more descriptive (#8781) 2024-01-17 16:19:19 +01:00

This is a set of tests for the Base library for Enso.

HTTP tests

The run test suite for the HTTP component requires an active helper server on the localhost. If it is present, the port it listens to should be provided by setting the ENSO_HTTP_TEST_HTTPBIN_URL environment variable to a value like http://localhost:8080. The URL may contain a trailing slash.

To run the test server, you may use the following command:

sbt 'http-test-helper/run localhost 8080'

You can stop the server via Ctrl-C.

See the server's documentation for more information.

Cloud tests

By default, a subset of cloud tests runs whenever the ENSO_HTTP_TEST_HTTPBIN_URL environment variable is set, using a mock of parts of the cloud logic running on the helper server.

To run a full set of cloud tests against a real deployment, you need to set the following 3 environment variables:

  • ENSO_CLOUD_API_URI to point to the root of the cloud API,
  • ENSO_CLOUD_CREDENTIALS_FILE to be a path to a file containing the credentials to use, e.g. ~/.enso/credentials,
  • ENSO_RUN_REAL_CLOUD_TEST=1 to tell the test suite to run against a real cloud deployment.

Note that some cloud tests (e.g. testing secrets in HTTP requests) still require the ENSO_HTTP_TEST_HTTPBIN_URL setup, even if running against a real cloud deployment.