JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Running single tests...

    Development Discussions
    2
    2
    363
    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.
    • SimonClark
      SimonClark last edited by

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

      z3dev 1 Reply Last reply Reply Quote 0
      • z3dev
        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
        • First post
          Last post
        Powered by NodeBB | Contributors