Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Renaming samples->acceptance, moving back browser under test

Attila Domokos989322445979
diff --git a/Makefile b/Makefile
index 21c2cc48..b6d9df3b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ SUPPORT = $(wildcard support/*.js)
all: mocha.js mocha.css
-mocha.css: test/samples/browser/style.css
+mocha.css: test/browser/style.css
cp -f $< $@
mocha.js: $(SRC) $(SUPPORT)
@@ -33,56 +33,56 @@ test-bdd:
@./bin/mocha \
--reporter $(REPORTER) \
--ui bdd \
- test/samples/interfaces/bdd
+ test/acceptance/interfaces/bdd
test-tdd:
@./bin/mocha \
--reporter $(REPORTER) \
--ui tdd \
- test/samples/interfaces/tdd
+ test/acceptance/interfaces/tdd
test-qunit:
@./bin/mocha \
--reporter $(REPORTER) \
--ui qunit \
- test/samples/interfaces/qunit
+ test/acceptance/interfaces/qunit
test-exports:
@./bin/mocha \
--reporter $(REPORTER) \
--ui exports \
- test/samples/interfaces/exports
+ test/acceptance/interfaces/exports
test-grep:
@./bin/mocha \
--reporter $(REPORTER) \
--grep fast \
- test/samples/misc/grep
+ test/acceptance/misc/grep
test-bail:
@./bin/mocha \
--reporter $(REPORTER) \
--bail \
- test/samples/misc/bail
+ test/acceptance/misc/bail
non-tty:
@./bin/mocha \
--reporter dot \
- test/samples/interfaces/bdd 2>&1 > /tmp/dot.out
+ test/acceptance/interfaces/bdd 2>&1 > /tmp/dot.out
@echo dot:
@cat /tmp/dot.out
@./bin/mocha \
--reporter list \
- test/samples/interfaces/bdd 2>&1 > /tmp/list.out
+ test/acceptance/interfaces/bdd 2>&1 > /tmp/list.out
@echo list:
@cat /tmp/list.out
@./bin/mocha \
--reporter spec \
- test/samples/interfaces/bdd 2>&1 > /tmp/spec.out
+ test/acceptance/interfaces/bdd 2>&1 > /tmp/spec.out
@echo spec:
@cat /tmp/spec.out
diff --git a/test/samples/context.js b/test/acceptance/context.js
similarity index 100%
rename from test/samples/context.js
rename to test/acceptance/context.js
diff --git a/test/samples/duration.js b/test/acceptance/duration.js
similarity index 100%
rename from test/samples/duration.js
rename to test/acceptance/duration.js
diff --git a/test/samples/fs.js b/test/acceptance/fs.js
similarity index 100%
rename from test/samples/fs.js
rename to test/acceptance/fs.js
diff --git a/test/samples/globals.js b/test/acceptance/globals.js
similarity index 100%
rename from test/samples/globals.js
rename to test/acceptance/globals.js
diff --git a/test/samples/http.js b/test/acceptance/http.js
similarity index 100%
rename from test/samples/http.js
rename to test/acceptance/http.js
diff --git a/test/samples/interfaces/bdd.js b/test/acceptance/interfaces/bdd.js
similarity index 100%
rename from test/samples/interfaces/bdd.js
rename to test/acceptance/interfaces/bdd.js
diff --git a/test/samples/interfaces/exports.js b/test/acceptance/interfaces/exports.js
similarity index 100%
rename from test/samples/interfaces/exports.js
rename to test/acceptance/interfaces/exports.js
diff --git a/test/samples/interfaces/qunit.js b/test/acceptance/interfaces/qunit.js
similarity index 100%
rename from test/samples/interfaces/qunit.js
rename to test/acceptance/interfaces/qunit.js
diff --git a/test/samples/interfaces/tdd.js b/test/acceptance/interfaces/tdd.js
similarity index 100%
rename from test/samples/interfaces/tdd.js
rename to test/acceptance/interfaces/tdd.js
diff --git a/test/samples/merge.js b/test/acceptance/merge.js
similarity index 100%
rename from test/samples/merge.js
rename to test/acceptance/merge.js
diff --git a/test/samples/misc/bail.js b/test/acceptance/misc/bail.js
similarity index 100%
rename from test/samples/misc/bail.js
rename to test/acceptance/misc/bail.js
diff --git a/test/samples/misc/cascade.js b/test/acceptance/misc/cascade.js
similarity index 100%
rename from test/samples/misc/cascade.js
rename to test/acceptance/misc/cascade.js
diff --git a/test/samples/misc/grep.js b/test/acceptance/misc/grep.js
similarity index 100%
rename from test/samples/misc/grep.js
rename to test/acceptance/misc/grep.js
diff --git a/test/samples/misc/nontty.js b/test/acceptance/misc/nontty.js
similarity index 100%
rename from test/samples/misc/nontty.js
rename to test/acceptance/misc/nontty.js
diff --git a/test/samples/multiple.done.js b/test/acceptance/multiple.done.js
similarity index 100%
rename from test/samples/multiple.done.js
rename to test/acceptance/multiple.done.js
diff --git a/test/samples/pending.js b/test/acceptance/pending.js
similarity index 100%
rename from test/samples/pending.js
rename to test/acceptance/pending.js
diff --git a/test/samples/root.js b/test/acceptance/root.js
similarity index 100%
rename from test/samples/root.js
rename to test/acceptance/root.js
diff --git a/test/samples/test.coffee b/test/acceptance/test.coffee
similarity index 100%
rename from test/samples/test.coffee
rename to test/acceptance/test.coffee
diff --git a/test/samples/timeout.js b/test/acceptance/timeout.js
similarity index 100%
rename from test/samples/timeout.js
rename to test/acceptance/timeout.js
diff --git a/test/samples/uncaught.js b/test/acceptance/uncaught.js
similarity index 100%
rename from test/samples/uncaught.js
rename to test/acceptance/uncaught.js
diff --git a/test/samples/browser/array.js b/test/browser/array.js
similarity index 100%
rename from test/samples/browser/array.js
rename to test/browser/array.js
diff --git a/test/samples/browser/index.html b/test/browser/index.html
similarity index 100%
rename from test/samples/browser/index.html
rename to test/browser/index.html
diff --git a/test/samples/browser/jquery.js b/test/browser/jquery.js
similarity index 100%
rename from test/samples/browser/jquery.js
rename to test/browser/jquery.js
diff --git a/test/samples/browser/large.html b/test/browser/large.html
similarity index 100%
rename from test/samples/browser/large.html
rename to test/browser/large.html
diff --git a/test/samples/browser/large.js b/test/browser/large.js
similarity index 100%
rename from test/samples/browser/large.js
rename to test/browser/large.js
diff --git a/test/samples/browser/style.css b/test/browser/style.css
similarity index 100%
rename from test/samples/browser/style.css
rename to test/browser/style.css