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

    unit testing

    Scheduled Pinned Locked Moved Discussion
    testingwipy 3.0micropython
    2 Posts 2 Posters 649 Views 2 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.
    • I Offline
      InverseEffect
      last edited by

      Hi,

      I was wondering if anyone has attempted unit testing of their python scripts on the hardware (WiPy)? Is it possible? I imagine running unit tests using a micropython unit test lib(if such a lib even exists) through the REPL from Atom/Vs code.

      sebS 1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb @InverseEffect
        last edited by

        @inverseeffect

        Unit testing on hardware is a little more difficult that pure software because timings can be variable and you need to have real hardware connected. It certainly is possible to create small units of code and have them run and check their results, it's no different to running your full code, just split into smaller chunks and with more checks.

        1 Reply Last reply Reply Quote 0

        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