{"id":15725467,"url":"https://github.com/ericmeyer/objectivecslim","last_synced_at":"2025-03-13T01:31:34.456Z","repository":{"id":66879616,"uuid":"2591840","full_name":"ericmeyer/ObjectiveCSlim","owner":"ericmeyer","description":null,"archived":false,"fork":false,"pushed_at":"2017-08-11T14:49:48.000Z","size":9046,"stargazers_count":5,"open_issues_count":4,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T18:13:01.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericmeyer.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2011-10-17T13:22:24.000Z","updated_at":"2022-08-22T07:21:27.000Z","dependencies_parsed_at":"2023-02-21T03:45:20.809Z","dependency_job_id":null,"html_url":"https://github.com/ericmeyer/ObjectiveCSlim","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmeyer%2FObjectiveCSlim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmeyer%2FObjectiveCSlim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmeyer%2FObjectiveCSlim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericmeyer%2FObjectiveCSlim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericmeyer","download_url":"https://codeload.github.com/ericmeyer/ObjectiveCSlim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243322410,"owners_count":20272869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:21:20.818Z","updated_at":"2025-03-13T01:31:34.426Z","avatar_url":"https://github.com/ericmeyer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Using Objective C Slim\n\n## See here for installation/setup instructions: https://github.com/ericmeyer/OCSlim-Templates\n\n# What is Objective C Slim?\n\nThis provides a way to write acceptance tests for your iOS and other Objective C applications using Slim tables and fixtures written in Objective C.\n\nhttp://fitnesse.org/FitNesse.UserGuide.SliM has more information about what Slim is.\n\n# Making Changes to Objective C Slim\n\nhttps://github.com/dougbradbury/cslim\n\nThis project is an example project using the cslim project as a dependency via a git submodule.  If you make changes/additions to Objective C Slim, make sure to push those to the cslim project.  Also, new files should typically be added to the cslim submodule.\n\n# Running These Examples\n\nNote: Some of the examples intentionally give errors or warnings.\n\n1. Clone this project.\n2. Run `git submodule init`\n3. Run `git submodule update`\n4. Open the project in Xcode.\n5. Run `./bin/StartFitnesse`\n6. Open a browser to http://localhost:8080/CslimFirstExamples\n7. Click \"Suite\" near the top left corner.\n8. See results.\n\n# Getting Started with Tests for Xcode\n\nSoon to be replaced with a template for an acceptance test target.\n\n1. Create a new project or open an existing project\n2. Checkout https://github.com/dougbradbury/cslim into your project.\n3. Create a new target and call it AcceptanceTests.\n4. Add all the header files from the following directories to the project.  Make sure they are a included in the AcceptanceTests target.\n  * include/Com\n  * include/CSlim\n5. Add all the src files from the following directories to the project.  Make sure they are a included in the AcceptanceTests target.\n  * src/Com\n  * src/CSlim\n  * src/ExecutorObjectiveC\n6. Download fitnesse.jar into the root of your project.\n7. Start fitnesse and write some tests.  See http://fitnesse.org/FitNesse.UserGuide.SliM for help in writing and running Slim tests.\n8. Write new fixtures in Xcode, making sure to add them to the AcceptanceTests target.\n9. Run the tests in fitnesse.\n\nCurrently, the target AcceptanceTests will not actually run the tests.  Instead it just builds the fixtures.\n\n## Fitnesse Test Runner Options\n\nUse this as a starting point for the contents of your Fitnesse page that is your top level suite.  It has been copy pasted from http://localhost:8080/CslimFirstExamples?edit while fitnesse is running on your local machine.\n\n\u003cpre\u003e\n!contents -R2 -g -p -f -h\n\n\n!define TEST_SYSTEM {slim}\n!define TEST_RUNNER {build/Debug/AcceptanceTests.app/Contents/MacOS/AcceptanceTests}\n!define COMMAND_PATTERN {%m}\n!define SLIM_VERSION {0.0}\n\u003c/pre\u003e\n\n## Writing Fixtures\n\nFixture methods that take one argument expect an NSString\nFixture methods that take more than one argument expect an NSArray of NSString's.\nAll fixture methods return an NSString\nSee ObjAdderFixture for an example of a decision table\nSee Count for an example of a script table\n\n## Useful Methods\n\nConverting Strings to number primitives:\n\n* [@\"123\" intValue];\n* [@\"3.50\" doubleValue];\n* [@\"3.14\" floatValue];\n\n\nConverting to an NSString\n\n* From an NSNumber\n  * NSNumber* number = [NSNumber numberWithInt: 1];\n  * [number stringValue];\n* General case\n  * [NSString stringWithFormat: @\"%@, %@\", @\"Lastname\", @\"Firstname\"];","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmeyer%2Fobjectivecslim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericmeyer%2Fobjectivecslim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericmeyer%2Fobjectivecslim/lists"}