Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Pytest integration

    Scheduled Pinned Locked Moved Discussion
    4 Posts 2 Posters 57 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      Summer
      last edited by

      Hi,
      any way to get pytest for micropython?

      https://docs.pytest.org/en/latest/

      1 Reply Last reply Reply Quote 0
      • A Offline
        andreas
        last edited by andreas

        Dear @Summer,

        pytest itself will probably never work on MicroPython. You might also want to follow the discussion at [1].

        However, we have been working on building a test harness for our Terkin Datalogger based on pytest just a few days ago, see [2]. The main job was to apply appropriate mocking to the MicroPython ESP32 HALs and to make different modules from the MicroPython standard library compatible with CPython.

        So, the test harness will not run on the device itself, but within a regular CPython. Let me know what you are aiming at and if I can support you in any way. In fact, I was planning to put all generic parts into a different package so it can be reused by others.

        With kind regards,
        Andreas.

        [1] https://github.com/pfalcon/pycopy-lib/issues/49#issuecomment-603875987
        [2] https://github.com/hiveeyes/terkin-datalogger/tree/master/test

        1 Reply Last reply Reply Quote 0
        • S Offline
          Summer
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • S Offline
            Summer
            last edited by

            Thank you for the interesting informations, I want exaclty to be able to develop without having to load the software on the boards to test it.
            I'll look at your implementation, thank you for sharing!
            Best regards

            1 Reply Last reply Reply Quote 1

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom