Comments (3)
Thanks, I'll look into getting this fixed.
from grover.
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.
Just pushed [email protected]
with a fix for this (and a few other issues I found on Windows).
from grover.
Related Issues (18)
- Grover should optionally combohandle local files when using --server option. HOT 3
- Show console.log/Y.log messages HOT 2
- How to let grover know about modules loader doesn't know about HOT 2
- Allow grover to run against the NPM wrapper for PhantomJS HOT 1
- Test Results (TAP) are not rolled up HOT 3
- The --istanbul-report overrides the -co flag HOT 1
- Nested testsuites in XML output are not parseable by Jenkins HOT 2
- Support for Slimerjs
- Issue in running grover on windows HOT 8
- 0.1.16 broke junit xml reporting with YUI when testing multiple files HOT 2
- The number of tests is wrong in TAP format
- 'output' option generates incorrect / duplicate count.
- Doesn't work with PhantomJS 2.1.1 HOT 2
- Coverage: Several test pages for the same piece of javascript are not rolled up correctly HOT 2
- Coverage: Need a means to produce a standard coverage report consumable by Jenkins or other coverage tool (lcov, etc) HOT 2
- Error when remove an iframe on teardown HOT 1
- Istanbul coverage + XML output not cooperating. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grover.