Giter VIP home page Giter VIP logo

Comments (2)

surpher avatar surpher commented on July 18, 2024

That is the expected behaviour.

The framework is limited to write to the disk of the device it is running on, which in your case would be the iOS devices disk and not you mac.

I'm just about to release a version that would write an info message into the console when running on a device.

from pactswift.

surpher avatar surpher commented on July 18, 2024

This is now live with version v0.12.1. When running on a physical device the writing of the pact contract file will be skipped, will not fail the tests and debug console will print something like this:

Test Suite 'Selected tests' started at 2022-06-01 11:19:12.646
Test Suite 'AnimalClientTests.xctest' started at 2022-06-01 11:19:12.647
Test Suite 'AnimalClientTests' started at 2022-06-01 11:19:12.648
Test Case '-[AnimalClientTests.AnimalClientTests testGetsAnimals]' started.
[INFO]: Running on an iOS device. Writing Pact interaction into a contract skipped.
Test Case '-[AnimalClientTests.AnimalClientTests testGetsAnimals]' passed (0.505 seconds).
Test Suite 'AnimalClientTests' passed at 2022-06-01 11:19:13.154.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.505 (0.506) seconds
Test Suite 'AnimalClientTests.xctest' passed at 2022-06-01 11:19:13.154.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.505 (0.507) seconds
Test Suite 'Selected tests' passed at 2022-06-01 11:19:13.155.
	 Executed 1 test, with 0 failures (0 unexpected) in 0.505 (0.508) seconds

from pactswift.

Related Issues (20)

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.