Skip to content

Commit

Permalink
Add hero image to README and migrate project documentation to wiki (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewchang-bird authored Apr 21, 2020
1 parent eb247c7 commit 44241e2
Show file tree
Hide file tree
Showing 13 changed files with 57 additions and 404 deletions.
18 changes: 11 additions & 7 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,23 @@ Please provide a clear and concise description of the bug.

### Generator Bugs

Please provide the complete output when running Mockingbird CLI, including any options used.

```bash
$ mockingbird generate
```

If the generator produces code that is malformed or does not compile, please provide:

1. A minimal example of the original source
2. The actual mocking code generated
3. The expected mocking code that should be generated (or a description)

If the generator is not producing code or crashing, please provide logging output from the Run Script Phase. See
[Debugging the generator](https://github.com/birdrides/mockingbird/wiki/Debugging-the-Generator) for more
information.

```bash
$ mockingbird generate
```

### Framework Bugs

Please provide a minimal example of your unit testing code, including any errors.
Please provide a minimal example of your testing code, including any errors.

## Environment

Expand All @@ -41,3 +44,4 @@ Please provide a minimal example of your unit testing code, including any errors
* Installation method (CocoaPods, Carthage, from source, etc)
* Unit testing framework (XCTest, Quick + Nimble, etc)
* Does your project use `.mockingbird-ignore`?
* Are you using [supporting source files](https://github.com/birdrides/mockingbird#supporting-source-files)?
34 changes: 0 additions & 34 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,37 +9,3 @@ Install required dependencies and configure the Xcode project.
```bash
$ make setup-project
```

## Project Structure

### MockingbirdCli

Frontend for the CLI which uses the argument parser from `SPMUtility`.

### MockingbirdGenerator

Performs code generation for a target.

1. Parse the Xcode project using `XcodeProj`, or used a cached representation of the Xcode project.
2. Extract the source files from the target and its dependencies.
3. Parse each extracted source file into a structure tree using `SourceKitten`.
4. Minimally process the top level types from each structure tree, converting them into a `RawType`.
5. For each `RawType` coming from a target-defined source file, flatten the inheritance graph into a `MockableType`.
6. Send all `MockableType` objects to the generator to render using templates.

### MockingbirdFramework

The runtime testing framework that provides mocking, stubbing, and verification APIs.

### MockingbirdTestsHost

Defines types used in end-to-end tests.

### MockingbirdModuleTestsHost

Defines types which are imported by `MockingbirdTestsHost` and used for cross-module end-to-end tests.

### MockingbirdTests

Handles end-to-end and unit tests. End-to-end tests use protocol conformance for asserting that generated mocks
contain the expected member declarations.
21 changes: 0 additions & 21 deletions Codesigning/README.md

This file was deleted.

Binary file removed Documentation/Assets/signed-cli-installer.png
Binary file not shown.
Binary file removed Documentation/Assets/test-target-build-phases.png
Binary file not shown.
8 changes: 0 additions & 8 deletions Documentation/LinkingTestTargets.md

This file was deleted.

62 changes: 0 additions & 62 deletions Documentation/ManualSetup.md

This file was deleted.

81 changes: 0 additions & 81 deletions Documentation/MockingExternalTypes.md

This file was deleted.

81 changes: 0 additions & 81 deletions Documentation/Performance.md

This file was deleted.

4 changes: 2 additions & 2 deletions Examples/iOSMockingbirdExample-Carthage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ Open the Xcode project.
$ open iOSMockingbirdExample-Carthage.xcodeproj
```

Take a peek at the example test and sources and then run the tests (⌘+U).:
Take a peek at the example test and sources and then run the tests (⌘+U):

- [`TreeTests.swift`](iOSMockingbirdExample-CarthageTests/TreeTests.swift)
- [`Tree.swift`](iOSMockingbirdExample-Carthage/Tree.swift)
- [`Bird.swift`](iOSMockingbirdExample-Carthage/Bird.swift)

Bonus: look at the contents of
[`.mockingbird-ignore`](iOSMockingbirdExample-CarthageTests/.mockingbird-ignore).
[`.mockingbird-ignore`](iOSMockingbirdExample-Carthage/.mockingbird-ignore).
4 changes: 2 additions & 2 deletions Examples/iOSMockingbirdExample-CocoaPods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ Open the Xcode workspace generated by CocoaPods.
$ open iOSMockingbirdExample-CocoaPods.xcworkspace
```

Take a peek at the example test and sources and then run the tests (⌘+U).:
Take a peek at the example test and sources and then run the tests (⌘+U):

- [`TreeTests.swift`](iOSMockingbirdExample-CocoaPodsTests/TreeTests.swift)
- [`Tree.swift`](iOSMockingbirdExample-CocoaPods/Tree.swift)
- [`Bird.swift`](iOSMockingbirdExample-CocoaPods/Bird.swift)

Bonus: look at the contents of
[`.mockingbird-ignore`](iOSMockingbirdExample-CocoaPodsTests/.mockingbird-ignore).
[`.mockingbird-ignore`](iOSMockingbirdExample-CocoaPods/.mockingbird-ignore).
Binary file added Images/mockingbird-hero-image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 44241e2

Please sign in to comment.