Giter Club home page Giter Club logo

Comments (6)

calebboyd avatar calebboyd commented on May 23, 2024 1

Hey @felixjb I'm looking into this a bit and am working on the following approach

(pseudo code)

const { runnerHints, testNames } = parse(testFile)
const runner = findRunnerUp(testFile, runnerHints)
const testRoot = findPkgUp(testFile, runner.name)
runner.runTest({ cwd: testRoot, testFile, testNames })

The big difference being, the cwd of the runner command is set to the nearest package.json directory to the test file, that contains that runner. I can also work on moving runner command generation to a factory function and generalize the runTest,debugTest implementation.

from testify.

roggenbrot avatar roggenbrot commented on May 23, 2024 1

Medium: monorepo development with multi root workspaces in vsc

Extension: Monorepo to workspace config

from testify.

felixjb avatar felixjb commented on May 23, 2024

Hello @calebboyd !

This feature would really be a great addition to the project. The way it works today is:

  • the extension looks for the test ruuner in the node_modules directory in the root of the workspace; or
  • the extension looks for the test ruuner at the path you specified in the configurations;

I am trying to figure out a new method write a factory for this so it can be a little more flexible but couldn't find a way yet. I'll make this issue with help wanted

from testify.

felixjb avatar felixjb commented on May 23, 2024

Hey @calebboyd , thank you for picking this up.

That package.json idea is pretty cool. Maybe you could also base your implementation on how Git handles the commits in a repository, which seems similar

from testify.

roggenbrot avatar roggenbrot commented on May 23, 2024

Should this not work out of the box when using workspaces?

from testify.

felixjb avatar felixjb commented on May 23, 2024

@roggenbrot I don't know, maybe not. Some projects use a monorepo structure, some even use a framework called lerna which makes one repo have multiple package.json files

from testify.

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.