-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Client class in XCTest #1
Comments
Nice catch, and not intentional; shows the desolate state the SMART specific test cases are in! The instruction to wait for the block callback is also missing, I don't think this test class is any good. Yes, you can use the client to connect to the open FHIR endpoint. I haven't tried it in unit tests and am using a mock server in the other test cases, testing metadata parsing. Maybe that's a better approach for unit testing? What do you need to test? |
Well, my goal is to test many of the SMART-on-FIHR apis ( with some of my wrapper code around them ) in XCTests against I need automated tests so that I can run regression tests every day or so to make sure I am not breaking something. This describes what I am trying to do http://e2.edgemoor.com/doc/s16s3.html http://e2.edgemoor.com/doc/s16s3.html Chris Hawkins
|
Ah great! Yes, that makes sense. The client works by reading the Conformance statement the first time any REST call is needed, so for open servers you may only need to specify Let me know how it goes! |
I hope to be working on that by tomorrow, will let you know how it works out.
|
I need to run some Xcode unit tests based on the XCTest class. In SMART_on_FHIR_iOSTests.swift you have a simple example
I notice that the client_id parameter is misspelled to cliend_id. Is this intentional ?
Can this be used to test against one of the SMART-on-FHIR test servers such as fhir-open-api-dstu2.smarthealthit.org ?
If so, what would the input settings to Client init( baseURL:, settings:, title: ) be ?
The text was updated successfully, but these errors were encountered: