JSCAD User Group
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Running single tests...

    Scheduled Pinned Locked Moved Development Discussions
    2 Posts 2 Posters 956 Views 1 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.
    • SimonClarkS Offline
      SimonClark
      last edited by

      Dumb question... How do I just run one test.js? Something's eluding me 😞

      z3devZ 1 Reply Last reply Reply Quote 0
      • z3devZ Offline
        z3dev @SimonClark
        last edited by z3dev

        @SimonClark no problem. and welcome to the world of jscad development. 🤓

        so, each of the packages are managed via 'lerna'. lerna is kind of cool because it automatically detects the dependencies and links everything together during the 'bootstrap' phase.

        once everything is linked together, then you can make changes to any of the code, and rerun tests, or run CLI / WEB.

        also, each of the packages can be tested individually. for example, you can change directories to packages/modeling, and run the tests using 'npm test'.

        if there's too much noise then you can move the *.test.js files into a temporary directory, and test something special by creating another *.test.js file.

        AVA is the test harness of choice. It's cool.

        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
        • First post
          Last post
        Powered by NodeBB | Contributors