tuist/fixtures
Jared Sorge ab9e318c9a
Add support for embedded scripts (#2192)
* Update the TuistCore version

* Update TuistGenerator usage

* Update the ProjectDescription version

* Update changelog

* Code review

* Simplify the PackageDescription.TargetAction

* SwiftFormat

* SwiftFormat

* Add linter test for empty embedded script

* Swift Format

* Refactor the TargetAction types to accept a tool, path, or a script

Co-authored-by: Jared Sorge <jasorge@zulily.com>
2020-12-30 09:45:57 +01:00
..
app_with_development_region_config Feature/development region (#1867) 2020-10-25 17:59:10 +01:00
app_with_framework_and_tests Project scheme (#1765) 2020-09-30 22:28:16 +02:00
app_with_framework_and_tests_and_dependencies Chimera - `carthage` support. (#2060) 2020-12-29 13:00:40 +01:00
app_with_framework_where_framework_failing_swiftlint Tuist lint command (#1682) 2020-09-09 08:51:41 +02:00
app_with_old_config_name Update fixtures 2020-03-10 18:29:49 +01:00
app_with_organization_name_config Feature/development region (#1867) 2020-10-25 17:59:10 +01:00
app_with_organization_name_project Add support for passing Organization name to project (#1062) 2020-03-13 19:18:36 +00:00
app_with_tests Update the linter to work with the graph traverser (#2129) 2020-12-20 11:11:36 +01:00
command_line_tool_basic Improve `command_line_tool_basic` fixture 2020-11-07 22:08:45 +01:00
command_line_tool_with_dynamic_dependencies Prepare fixtures for command line tools 2020-10-31 18:01:28 +01:00
command_line_tool_with_static_dependencies Prepare fixture for correct static lib linking to CLI tool 2020-11-05 05:08:18 +01:00
framework_with_environment_variables Allow passing the data to the manifest through environment variables (#1183) 2020-04-07 08:53:32 +02:00
invalid_manifest Print errors that arise when parsing the manifest (#1125) 2020-03-31 09:08:06 +02:00
invalid_workspace_manifest_name Replace swiftlint with swiftformat (#239) 2019-02-26 21:17:26 -05:00
ios_app_large Concatenate all the standard output events when parsing manifests 2020-03-31 16:39:04 +02:00
ios_app_with_actions Add support for embedded scripts (#2192) 2020-12-30 09:45:57 +01:00
ios_app_with_appclip Appclip support (#1854) 2020-10-27 20:07:45 +01:00
ios_app_with_coredata Add core data models to the sources build phase (#1542) 2020-07-14 10:08:45 +01:00
ios_app_with_custom_scheme simplify test plan handling. first in the list will be the default 2020-11-16 08:38:06 +01:00
ios_app_with_custom_workspace Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_env_suppressed Make environment logging configurable (#1782) 2020-09-24 20:18:56 +01:00
ios_app_with_extensions Use the build phase to locate the directory in derived data where artifacts are generated (#1939) 2020-10-25 15:28:55 +01:00
ios_app_with_framework_and_resources Fix an issue that caused the generation to fail when the resources glob includes a bundle (#2183) 2020-12-22 16:00:30 +01:00
ios_app_with_framework_linking_static_framework Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_frameworks Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_headers Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_helpers Chimera - `carthage` support. (#2060) 2020-12-29 13:00:40 +01:00
ios_app_with_incompatible_dependencies Add acceptance tests 2020-03-02 20:14:29 +01:00
ios_app_with_incompatible_xcode Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_local_binary_swift_package Fix "Embed Frameworks" build phase parameters (#2156) 2020-12-17 12:36:22 +01:00
ios_app_with_local_swift_package Fix Package.swift syntax 2020-11-21 18:06:07 +01:00
ios_app_with_multi_configs Add support for customizing profile and analyze action 2020-03-11 17:50:09 +08:00
ios_app_with_pods Fix continuous integration (#502) 2019-09-18 23:55:46 +02:00
ios_app_with_remote_swift_package Generate namespace for resources (#1635) 2020-09-09 07:48:18 +02:00
ios_app_with_sdk Add support for `.xctest` dependency for tvOS targets (#1597) 2020-07-30 09:09:35 +02:00
ios_app_with_setup Update fixtures 2020-03-10 18:29:49 +01:00
ios_app_with_signing Allow import of multiple signing certs (#2112) 2020-12-23 18:18:10 +01:00
ios_app_with_static_frameworks Update workflows to target 12.3 (#2155) 2020-12-17 13:22:08 +01:00
ios_app_with_static_libraries Update workflows to target 12.3 (#2155) 2020-12-17 13:22:08 +01:00
ios_app_with_static_library_and_package Update the linter to work with the graph traverser (#2129) 2020-12-20 11:11:36 +01:00
ios_app_with_templates Add custom template for testing stencil filters 2020-11-03 20:00:07 +01:00
ios_app_with_tests Update the linter to work with the graph traverser (#2129) 2020-12-20 11:11:36 +01:00
ios_app_with_transitive_framework Update workflows to target 12.3 (#2155) 2020-12-17 13:22:08 +01:00
ios_app_with_transitive_project Missing required module 'XXX' when building project with cached dependencies (#2051) 2020-12-09 13:54:09 +01:00
ios_app_with_watchapp2 Fix false positive duplicate static products lint rule (#2201) 2020-12-28 16:49:19 +01:00
ios_app_with_xcframeworks Update workflows to target 12.3 (#2155) 2020-12-17 13:22:08 +01:00
ios_workspace_with_dependency_cycle Generate namespace for resources (#1635) 2020-09-09 07:48:18 +02:00
ios_workspace_with_microfeature_architecture Cache targets as frameworks (#1851) 2020-10-01 17:55:22 +02:00
ios_workspace_with_microfeature_architecture_static_linking Generate namespace for resources (#1635) 2020-09-09 07:48:18 +02:00
macos_app_with_copy_files Added a fixture with project 2020-12-02 00:32:18 -05:00
manifest_with_logs Add support for printing from manifest files (#2215) 2020-12-29 17:50:11 +01:00
.gitignore Pass Info.plist as dictionary (#380) 2019-07-15 18:05:52 +02:00
Package.swift Add Package.swift to subdirectories 2020-11-21 17:12:06 +01:00
README.md Add support for printing from manifest files (#2215) 2020-12-29 17:50:11 +01:00

README.md

Fixtures

This folder contains sample projects we use in the integration and acceptance tests. Please keep this keep in alphabetical order.

invalid_workspace_manifest_name

Contains a single file Workspac.swift, incorrectly named workspace manifest file.

ios_app_with_custom_workspace

Contains a few projects and a Workspace.swift manifest file.

The workspace manifest defines:

  • glob patterns to list projects
  • glob patterns to include documentation files
  • folder reference to directory with html files

The App's project manifest leverages additionalFiles tha defines:

  • glob patterns to include documentation files
  • Includes a swift Danger.swift file that shouldn't get included in any buid phase
  • folder references to a directory with json files

ios_app_with_extensions

Sample application with extension targets.

ios_app_with_tests

Simple app which includes a setup manifest.

The setup action simply installs a dummy tool (file) to /tmp

Can be tested by running tuist up.

ios_app_with_frameworks

Slightly more complicated project consists of an iOS app and few frameworks.

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - Framework1:
    - Framework1 (dynamic iOS framework)
    - Framework1Tests (iOS unit tests)
  - Framework2:
    - Framework2 (dynamic iOS framework)
    - Framework2Tests (iOS unit tests)
  - Framework3:
    - Framework3 (dynamic iOS framework)
  - Framework4:
    - Framework4 (dynamic iOS framework)
  - Framework5:
    - Framework5 (dynamic iOS framework)

Dependencies:

  • App -> Framework1
  • App -> Framework2
  • Framework1 -> Framework2
  • Framework2 -> Framework3
  • Framework3 -> Framework4
  • Framework4 -> Framework5

ios_app_with_framework_and_resources

A workspace with an application that includes resources.

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - Framework1:
    - Framework1 (dynamic iOS framework)
  - StaticFramework
    - StaticFramework (static iOS framework)
    - StaticFrameworkResources (iOS bundle)

Dependencies:

  • App -> Framework1
  • App -> StaticFramework
  • App -> StaticFrameworkResources

ios_app_with_framework_linking_static_framework

An example project demonstrating an iOS application linking a dynamic framework which itself depends on a static framework with transitive static dependencies.

Only Framework1.framework should be linked and included into App, everything else should be statically linked into the Framework1 executable.

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - Framework1:
    - Framework1 (dynamic iOS framework)
    - Framework1Tests (iOS unit tests)
  - Framework2:
    - Framework2 (static iOS framework)
    - Framework2Tests (iOS unit tests)
  - Framework3:
    - Framework3 (static iOS framework)
    - Framework3Tests (iOS unit tests)
  - Framework4:
    - Framework4 (static iOS framework)
    - Framework4Tests (iOS unit tests)

Dependencies:

  • App -> Framework1
  • Framework1 -> Framework2
  • Framework1 -> Framework3
  • Framework3 -> Framework4

ios_app_with_multi_configs

An workspace that contains an application and frameworks that leverage multiple configurations (Debug, Beta and Release) each of which also has an associated xcconfig file within ConfigurationFiles.

ios_app_with_sdk

An application that contains an application target that depends on system libraries and frameworks (.framework and .tbd).

One of the dependencies is declared as .optional i.e. will be linked weakly.

ios_app_with_static_libraries

This application provides a top level application with two static library dependencies. The first static library dependency has another static library dependency so that we are able to test how tuist handles the transitiveness of the static libraries in the linked frameworks of the main app.

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - A:
    - A (static library iOS)
    - ATests (iOS unit tests)
  - B:
    - B (static library iOS)
    - BTests (iOS unit tests)

A standalone C project is used to generate a prebuilt static library:

  - C:
    - C (static library iOS)
    - CTests (iOS unit tests)

Dependencies:

  • App -> A
  • A -> B
  • A -> prebuild C (libC.a)

Note: to re-create libC.a run fixtures/ios_app_with_static_libraries/Modules/C/build.sh

ios_app_with_static_frameworks

This fixture contains an application that depends on static frameworks, both directly and transitively.

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - Modules
    - A:
      - A (static framework iOS)
      - ATests (iOS unit tests)
    - B:
      - B (static framework iOS)
      - BTests (iOS unit tests)
    - C:
      - C (static framework iOS)
      - CTests (iOS unit tests)
    - D:
      - D (dynamic framework iOS)

A standalone Prebuilt project is used to generate a prebuilt static framework:

- Prebuilt
  - PrebuiltStaticFramework (static framework iOS)

Dependencies:

  • App -> A
  • App -> C
  • App -> PrebuiltStaticFramework
  • A -> B
  • A -> C
  • C -> D

Note: to re-create PrebuiltStaticFramework.framework run fixtures/ios_app_with_static_frameworks/Prebuilt//build.sh

ios_app_with_tests

Simple app with tests.

ios_app_with_transitive_framework

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - Framework1:
    - Framework1 (dynamic iOS framework)
    - Framework1Tests (iOS unit tests)

A standalone Framework2 project is used to generate a prebuilt dynamic framework :

  - Framework2:
    - Framework2 (dynamic iOS framework)

Dependencies:

  • App -> Framework1
  • Framework1 -> Framework2 (prebuilt)

Note: to re-create Framework2.framework run fixtures/ios_app_with_transitive_framework/Framework2/build.sh

ios_app_with_pods

An iOS application with CocoaPods dependencies

ios_app_with_incompatible_xcode

An iOS app whose TuistConfig file requires an Xcode version that is not available in the system.

ios_app_with_actions

An iOS app with a target that has pre and post actions.

ios_app_with_remote_swift_package

An iOS application with remote Swift package

ios_app_with_local_swift_package

An iOS application with remote Swift package

ios_app_with_static_library_and_package

An iOS application that depends on static library that depends on Swift package where static library is defined first

Note: to re-create PrebuiltStaticFramework.framework run fixtures/ios_app_with_static_library_and_package/Prebuilt/build.sh

ios_workspace_with_dependency_cycle

An example of a workspace that has a dependency cycle between targets in different projects.

ios_app_with_helpers

A basic iOS app that has some manifest bits extracted into helpers.

ios_app_with_xcframeworks

Workspace:
  - App:
    - MainApp (iOS app)
    - MainAppTests (iOS unit tests)
  - MyFramework:
    - MyFramework (dynamic iOS framework)
  - MyStaticFramework:
    - MyStaticFramework (static iOS framework)
  - MyStaticLibirary:
    - MyStaticLibrary (static iOS libraries)

An example of an application which depends on prebuilt .xcframeworks.

The .xcframework can be obtained by running the build.sh script within the each of the framework directories.

e.g. ios_app_with_xcframeworks/Frameworks/MyFramework/build.sh

ios_app_with_coredata

A simple iOS app with a Core Data model and Mapping Model (.xcmappingmodel)

ios_app_with_incompatible_dependencies

An iOS app that has a dependency with a dependency with a framework for macOS.

app_with_development_region_config

An iOS app where the development region is defined at the Config level.

app_with_old_config_name

An iOS app where the configuration is defined following the deprecated naming TuistConfig.

app_with_organization_name_config

An iOS app where the organization name is defined at the Config level.

app_with_organization_name_project

An iOS app where the organization name is defined at the Project level.

invalid_manifest

A project with an invalid manifest

framework_with_environment_variables

A framework project that leverages environment variables to change the name of the framework.

manifest_with_logs

A project that contains logs to verify that the logs are forwarded by Tuist.