baddsert's People
Forkers
darkyenbaddsert's Issues
Various meta shenanigans
- Travis Badge
- npm badge/poster
- greenkeeper
Docs
- Mocha injection
- Better CLI examples
-
.baddrc
(when that's a thing) - whatever else I think of
CLI thinks it's bash
$ baddsert
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 1: use strict: command not found
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 2: /Applications: is a directory
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 3: CNAME: command not found
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 4: _includes/: is a directory
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 5: syntax error near unexpected token `('
/Users/randallkoutnik/.nvm/versions/node/v5.10.1/bin/baddsert: line 5: `var badd_fs_1 = require('./badd-fs');'
Allow user to customize things
.baddrc
or somesuch. Users should be able to customize:
- badd baseline folder
- log level.
Should not erase other values when using `.only`
Using .only
in mocha results in files being written that are only concerned with the one running test. We shouldn't delete things when they don't show up.
Decent logging
Right now I'm just using console.log
all over the place.
Requires harmony flag
Yeah, so I should probably compile this down to something more compatible.
Allow user to define their own initial values
A good chunk of the time, we know what value we want the test to be (at least initially).
The big problem is that if the code's wrong the first time (mreh) then the baseline will be wrong. Come up with some way to say "This is a first run, check everything new" (heck, should that be a default?)
Cannot ctrl+c out of CLI when expecting y/n value
Probably something in the lib we're using to interface with the user ignoring all other keypresses. Still, this is a bug.
Don't run init shenanigans, just figure out what file is calling us
instead of
let someStupidName = baddsert('blalalal');
Just figure out the name of the file calling us and use that. It'll be easier when there's a 1:1 mapping of file names.
Have meta test in CLI colored
This way it's easier to scan and distinguish between the message from baddsert and the actual values being discussed.
~Steal~ "Borrow" Mocha's diffing tool
Chai has some sweet diff logging functions that would be neat to have when comparing baseline and recent.
Pretty-print saved JS for better diffs
Allow optional comparison param
baddsert('tag', someVal, (old) => someVal === old);
Symbols
Can't save them, due to the whole 'unique' thing.
¯_(ツ)_/¯
Make the tag optional with better-assert
Wrap tests with baddsert
Have the CLI call npm test
and then run the checks so it's all in one command.
More assertion types
-
baddsert.throws
Having difficulty figuring out where things like greaterThan
and within
fit into BADD.
Skip all this plain JSON foo-fer-ah
JSON has trouble with functions, dates, undefined, etc. Find a decent lib and use that instead.
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.