Code Monkey home page Code Monkey logo

mappamundi's Introduction

MappaMundi

A declarative Don't Repeat Yourself tool for XCUITesting and screenshots.

Swift Package Manager

You can add this package to your project using SPM

Required

  • Xcode 12

On Xcode

File โ†’ Swift Packages โ†’ Add Package Dependency...

Add the url to this repository and follow the on screen instructions.

mappamundi's People

Contributors

clarmso avatar eoger avatar garvankeeley avatar isabelrios avatar jhugman avatar lmarceau avatar mozilla-github-standards avatar nbhasin2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mappamundi's Issues

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

pathfinding error occasionally

Bug description

Base on the DemoApp, I extended the graph like this

Graph declaration https://github.com/ampm/MappaMundi/blob/ampm/reproduce_finpath_bug/UITests/DemoMappaMundi.swift

image

The shortest way from screen itemDetail to foo_5 should be:

itemDetail->item_action_1->foo_5.

But, it doesn't work all the time, sometimes, it found out a longer path.

I added some code to the MMNavigator.swift for debugging and invoked the navigation testing for 10 times.

    override func invokeTest() {
        for time in 0...10 {
            print("this test is invoking: \(time) times")
            super.invokeTest()
        }
    }
    func testReproduceFindpathError() {
        navigator.performAction(Actions.addItem)
        navigator.goto(Screens.itemDetail)
        navigator.goto(Screens.foo5)
    }

The log shows:
image

Troubleshooting

At first, I doubted if it's a bug of Apple's GameplayKit ? I created a Playground to verify it.

In that Playground, I copied the graph in UITests and run it for 100 times.

image

But, the results can't prove my guess, it always returns the correct path.

How to reproduce this bug?

pls feel free to check out this repo
https://github.com/ampm/MappaMundi
branch name: reproduce_finpath_bug
then you can run the case func testReproduceFindpathError() in DemoUITests.swift.

@jhugman Can you give me any clue then I'll try to fix it?

Thanks a lot.

Hardcoded carthage location

Xcode project has a hardcoded path for the Carthage location, causing a build failure if carthage is installed at a different location:
line 2: /usr/local/bin/carthage: No such file or directory

P.S. I am sorry for not sending a PR for this, cannot do it at the moment.

AStar dependency failing with '3.0.0-beta-1'

$ cat Cartfile
github "Dev1an/A-Star" ~> 3.0.0-beta-1
$ carthage update --platform iOS
Parse error: unexpected trailing characters in line: github "Dev1an/A-Star" ~> 3.0.0-beta-1
$ cat Cartfile
github "Dev1an/A-Star" ~> 3.0.0
$ carthage update --platform iOS
*** Fetching A-Star
*** Checking out A-Star at "3.0.0-beta-1"
*** xcodebuild output can be found in /var/some/folder/some.log
*** Building scheme "AStar iOS" in AStar.xcodeproj

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.