-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
36 lines (29 loc) · 1.12 KB
/
test.js
File metadata and controls
36 lines (29 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var Mocha = require('mocha')
var mocha = new Mocha({})
mocha.addFile('lib/DatabaseAccessObject.spec')
mocha.addFile('lib/DatabaseConnection.spec')
mocha.addFile('lib/Model.spec')
mocha.addFile('lib/Validator.spec')
mocha.addFile('lib/WhereClause.spec')
mocha.addFile('lib/Join.spec')
// Validators
mocha.addFile('lib/validators/RequiredValidator.spec')
mocha.addFile('lib/validators/LengthValidator.spec')
mocha.addFile('lib/validators/NumericValidator.spec')
// DatabaseConnections
mocha.addFile('lib/databaseConnections/MySqlDatabaseConnection.spec')
// Releations
mocha.addFile('lib/relation/Relation.spec')
mocha.addFile('lib/relation/RelationHasMany.spec')
mocha.addFile('lib/relation/RelationHasOne.spec')
mocha.addFile('lib/relation/RelationManyMany.spec')
mocha.addFile('lib/relation/RelationBelongsTo.spec')
// TableShema
mocha.addFile('lib/tableShema/Column.spec')
mocha.addFile('lib/tableShema/TableShema.spec')
// Generator
mocha.addFile('lib/Generator.spec')
// Example DatabaseAccessObjects
mocha.addFile('example/Example.spec')
mocha.addFile('example/Order.spec')
mocha.run((failures) => { process.exitCode = failures ? 1 : 0 })