☕️ Classic, reliable, trusted test framework for Node.js and the browser
Added simple --grep test
Tj Holowaychuk32ddb5657dd6
diff --git a/Makefile b/Makefileindex 3c5267af..f5cceb9e 100644--- a/Makefile+++ b/Makefile@@ -4,7 +4,7 @@ REPORTER = listtest: test-unit-test-all: test-bdd test-tdd test-exports test-unit+test-all: test-bdd test-tdd test-exports test-unit test-greptest-unit:@./bin/mocha \@@ -18,20 +18,26 @@ test-bdd:--require should \--reporter $(REPORTER) \--ui bdd \- test/bdd.js+ test/bddtest-tdd:@./bin/mocha \--require should \--reporter $(REPORTER) \--ui tdd \- test/tdd.js+ test/tddtest-exports:@./bin/mocha \--require should \--reporter $(REPORTER) \--ui exports \- test/exports.js+ test/exports-.PHONY: test test-all test-bdd test-tdd test-exports test-unit\ No newline at end of file+test-grep:+ @./bin/mocha \+ --reporter $(REPORTER) \+ --grep fast \+ test/grep++.PHONY: test test-all test-bdd test-tdd test-exports test-unit test-grep\ No newline at end of filediff --git a/test/grep.js b/test/grep.jsnew file mode 100644index 00000000..d40effb1--- /dev/null+++ b/test/grep.js@@ -0,0 +1,22 @@++describe('grep', function(){+ describe('fast', function(){+ it('should run fast', function(){++ })++ it('should run fast again', function(){++ })+ })++ describe('slow', function(){+ it('should run slow', function(done){+ setTimeout(done, 1000);+ })++ it('should run slow again', function(done){+ setTimeout(done, 1000);+ })+ })+})