baddsert's People
Forkers
darkyenbaddsert's Issues
~Steal~ "Borrow" Mocha's diffing tool
Chai has some sweet diff logging functions that would be neat to have when comparing baseline and recent.
Make the tag optional with better-assert
Allow optional comparison param
baddsert('tag', someVal, (old) => someVal === old);
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.
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');'
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
More assertion types
-
baddsert.throws
Having difficulty figuring out where things like greaterThan
and within
fit into BADD.
Pretty-print saved JS for better diffs
Requires harmony flag
Yeah, so I should probably compile this down to something more compatible.
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.
Skip all this plain JSON foo-fer-ah
JSON has trouble with functions, dates, undefined, etc. Find a decent lib and use that instead.
Allow user to customize things
.baddrc
or somesuch. Users should be able to customize:
- badd baseline folder
- log level.
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.
Wrap tests with baddsert
Have the CLI call npm test
and then run the checks so it's all in one command.
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?)
Decent logging
Right now I'm just using console.log
all over the place.
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.
Symbols
Can't save them, due to the whole 'unique' thing.
¯_(ツ)_/¯
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.