☕️ Classic, reliable, trusted test framework for Node.js and the browser
Reorganizing all sample tests under test/samples
Attila Domokos0cf3ff15b48a
diff --git a/Makefile b/Makefileindex e53bd7ea..21c2cc48 100644--- a/Makefile+++ b/Makefile@@ -7,7 +7,7 @@ SUPPORT = $(wildcard support/*.js)all: mocha.js mocha.css-mocha.css: test/browser/style.css+mocha.css: test/samples/browser/style.csscp -f $< $@mocha.js: $(SRC) $(SUPPORT)@@ -33,56 +33,56 @@ test-bdd:@./bin/mocha \--reporter $(REPORTER) \--ui bdd \- test/interfaces/bdd+ test/samples/interfaces/bddtest-tdd:@./bin/mocha \--reporter $(REPORTER) \--ui tdd \- test/interfaces/tdd+ test/samples/interfaces/tddtest-qunit:@./bin/mocha \--reporter $(REPORTER) \--ui qunit \- test/interfaces/qunit+ test/samples/interfaces/qunittest-exports:@./bin/mocha \--reporter $(REPORTER) \--ui exports \- test/interfaces/exports+ test/samples/interfaces/exportstest-grep:@./bin/mocha \--reporter $(REPORTER) \--grep fast \- test/misc/grep+ test/samples/misc/greptest-bail:@./bin/mocha \--reporter $(REPORTER) \--bail \- test/misc/bail+ test/samples/misc/bailnon-tty:@./bin/mocha \--reporter dot \- test/interfaces/bdd 2>&1 > /tmp/dot.out+ test/samples/interfaces/bdd 2>&1 > /tmp/dot.out@echo dot:@cat /tmp/dot.out@./bin/mocha \--reporter list \- test/interfaces/bdd 2>&1 > /tmp/list.out+ test/samples/interfaces/bdd 2>&1 > /tmp/list.out@echo list:@cat /tmp/list.out@./bin/mocha \--reporter spec \- test/interfaces/bdd 2>&1 > /tmp/spec.out+ test/samples/interfaces/bdd 2>&1 > /tmp/spec.out@echo spec:@cat /tmp/spec.outdiff --git a/test/browser/array.js b/test/samples/browser/array.jssimilarity index 100%rename from test/browser/array.jsrename to test/samples/browser/array.jsdiff --git a/test/browser/index.html b/test/samples/browser/index.htmlsimilarity index 93%rename from test/browser/index.htmlrename to test/samples/browser/index.htmlindex ce579d55..2d273d1c 100644--- a/test/browser/index.html+++ b/test/samples/browser/index.html@@ -4,7 +4,7 @@<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link rel="stylesheet" href="style.css" /><script src="jquery.js" type="text/javascript"></script>- <script src="../../mocha.js"></script>+ <script src="../../../mocha.js"></script><script>mocha.setup('bdd')</script><script>function assert(expr, msg) {@@ -28,4 +28,4 @@<body><div id="mocha"></div></body>-</html>\ No newline at end of file+</html>diff --git a/test/browser/jquery.js b/test/samples/browser/jquery.jssimilarity index 100%rename from test/browser/jquery.jsrename to test/samples/browser/jquery.jsdiff --git a/test/browser/large.html b/test/samples/browser/large.htmlsimilarity index 100%rename from test/browser/large.htmlrename to test/samples/browser/large.htmldiff --git a/test/browser/large.js b/test/samples/browser/large.jssimilarity index 100%rename from test/browser/large.jsrename to test/samples/browser/large.jsdiff --git a/test/browser/style.css b/test/samples/browser/style.csssimilarity index 100%rename from test/browser/style.cssrename to test/samples/browser/style.cssdiff --git a/test/context.js b/test/samples/context.jssimilarity index 100%rename from test/context.jsrename to test/samples/context.jsdiff --git a/test/duration.js b/test/samples/duration.jssimilarity index 100%rename from test/duration.jsrename to test/samples/duration.jsdiff --git a/test/fs.js b/test/samples/fs.jssimilarity index 100%rename from test/fs.jsrename to test/samples/fs.jsdiff --git a/test/globals.js b/test/samples/globals.jssimilarity index 100%rename from test/globals.jsrename to test/samples/globals.jsdiff --git a/test/http.js b/test/samples/http.jssimilarity index 100%rename from test/http.jsrename to test/samples/http.jsdiff --git a/test/interfaces/bdd.js b/test/samples/interfaces/bdd.jssimilarity index 100%rename from test/interfaces/bdd.jsrename to test/samples/interfaces/bdd.jsdiff --git a/test/interfaces/exports.js b/test/samples/interfaces/exports.jssimilarity index 100%rename from test/interfaces/exports.jsrename to test/samples/interfaces/exports.jsdiff --git a/test/interfaces/qunit.js b/test/samples/interfaces/qunit.jssimilarity index 100%rename from test/interfaces/qunit.jsrename to test/samples/interfaces/qunit.jsdiff --git a/test/interfaces/tdd.js b/test/samples/interfaces/tdd.jssimilarity index 100%rename from test/interfaces/tdd.jsrename to test/samples/interfaces/tdd.jsdiff --git a/test/merge.js b/test/samples/merge.jssimilarity index 100%rename from test/merge.jsrename to test/samples/merge.jsdiff --git a/test/misc/bail.js b/test/samples/misc/bail.jssimilarity index 100%rename from test/misc/bail.jsrename to test/samples/misc/bail.jsdiff --git a/test/misc/cascade.js b/test/samples/misc/cascade.jssimilarity index 100%rename from test/misc/cascade.jsrename to test/samples/misc/cascade.jsdiff --git a/test/misc/grep.js b/test/samples/misc/grep.jssimilarity index 100%rename from test/misc/grep.jsrename to test/samples/misc/grep.jsdiff --git a/test/misc/nontty.js b/test/samples/misc/nontty.jssimilarity index 100%rename from test/misc/nontty.jsrename to test/samples/misc/nontty.jsdiff --git a/test/multiple.done.js b/test/samples/multiple.done.jssimilarity index 100%rename from test/multiple.done.jsrename to test/samples/multiple.done.jsdiff --git a/test/pending.js b/test/samples/pending.jssimilarity index 100%rename from test/pending.jsrename to test/samples/pending.jsdiff --git a/test/root.js b/test/samples/root.jssimilarity index 100%rename from test/root.jsrename to test/samples/root.jsdiff --git a/test/test.coffee b/test/samples/test.coffeesimilarity index 100%rename from test/test.coffeerename to test/samples/test.coffeediff --git a/test/timeout.js b/test/samples/timeout.jssimilarity index 100%rename from test/timeout.jsrename to test/samples/timeout.jsdiff --git a/test/uncaught.js b/test/samples/uncaught.jssimilarity index 100%rename from test/uncaught.jsrename to test/samples/uncaught.js