jahed / night-patrol Goto Github PK
View Code? Open in Web Editor NEWInteractive Test Tunner for Nightwatch. Run individual tests, re-run failures, switch environments, autocompletion, and more.
License: MIT License
Interactive Test Tunner for Nightwatch. Run individual tests, re-run failures, switch environments, autocompletion, and more.
License: MIT License
The Babel dependencies are out of date after Babel 7 was released and no longer follow best practices like using preset-env
. Also eslint is out of date and I prefer standard-js's simplicity.
Instead of upgrading Babel and eslint, this is a good opportunity to move the project over to TypeScript.
Currently, Night Patrol loads the configuration only on start up. This means changes to the test suite (new/removed test files, new/removed test cases, changes nightwatch config, etc.) aren't loaded in and requires the user to manually restart the executable. This is inconvenient. Ideally, watch for changes and reload the configuration whenever a change is detected.
To be safe and to keep it simple, any change should reload the entire configuration, not just parts of it, unless if this introduces performance issues.
Changes which should trigger a reload:
src_folders
for now)Nightwatch supports setting src_folders
to an array, but Night Patrol assumes it's always string.
night-patrol/source/actions/nightwatch.js
Line 48 in 2c15451
$ night-patrol --config ./tests/nightwatch.config.js
path.js:39
throw new ERR_INVALID_ARG_TYPE('path', 'string', path);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type object
at assertPath (path.js:39:11)
at Object.resolve (path.js:1088:7)
at setNightwatchConfig (/home/jahed/repos/frontiernav/frontiernav/node_modules/night-patrol/dist/actions/nightwatch.js:73:40)
at Object.<anonymous> (/home/jahed/repos/frontiernav/frontiernav/node_modules/night-patrol/dist/cli.js:208:46)
at Module._compile (internal/modules/cjs/loader.js:688:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:699:10)
at Module.load (internal/modules/cjs/loader.js:598:32)
at tryModuleLoad (internal/modules/cjs/loader.js:537:12)
at Function.Module._load (internal/modules/cjs/loader.js:529:3)
at Module.require (internal/modules/cjs/loader.js:636:17)
stripcolorcodes is just a one-liner. Re-implement it instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.