Giter VIP home page Giter VIP logo

Comments (3)

davglass avatar davglass commented on August 20, 2024

Thanks, I'll look into getting this fixed.

from grover.

samyhrer avatar samyhrer commented on August 20, 2024

A pull request might have been a better approach, but I'm not all to familiar to how to contribute code to projects on Github.
I did some research by my own extended the options-module which now uses the glob-module for setting options.path. So now the test files can be run even if they are organized in a hierarchical directory structure with a pattern like ./test/*/.html

Relevant code

glob = require('glob')
....
getFiles = function(dir, pattern) {
    // Find all test files in searchPatterns.
    return glob.sync(pattern, { cwd: dir }).map(function(filepath){ return path.join(dir + "/" + filepath) });
},
...
default:
  if (v.indexOf('-') === 0) {
    console.error('Invalid option: ' + v);
    process.exit(1);
    break;
   }
   rootDir = v.substring(0, v.indexOf("/"))
   pattern = v.substring(v.indexOf("/")+1, v.length)
   options.paths = getFiles(rootDir, pattern);

The command would be grover ./test/**/*.html if your tests are located in the test-directory.

Thought you might find it helpful.

from grover.

davglass avatar davglass commented on August 20, 2024

Just pushed [email protected] with a fix for this (and a few other issues I found on Windows).

from grover.

Related Issues (18)

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.