...
".test()" runs unit tests, i.e. tests which do not contact the Synapse server. ".integrationTest()" runs those tests that do contact the server, creating and deleting content as they go.
Sometimes a client feature is developed in concert with a back end change. Back end changes are deployed to a "staging" version of the server for a week before becoming production. To direct a client to this staging back end do the following:
Code Block |
---|
synSetEndpoints("https://repo-staging.prod.sagebase.org/repo/v1", "https://repo-staging.prod.sagebase.org/auth/v1", "https://repo-staging.prod.sagebase.org/file/v1", "https://portal-staging.prod.sagebase.org")
# now log in, run integration tests, or perform other server interaction
synapseLogin()
synapseClient:::.integrationTest() |
Push your code changes to Github
...