Rodrigo Ramírez Norambuena
5770b9dc0e
Test env 404 not found request http://localhost:8080/nothing
...
This test expect gets 404 HTTP code on get request to
http://localhost:8080/nothing
2017-03-09 17:10:32 -03:00
Rodrigo Ramírez Norambuena
afe2b934de
test env requst http://localhost:8080
...
This test expect get 200 HTTP code on get request to
http://localhost:8080
2017-03-08 10:36:08 -03:00
Rodrigo Ramírez Norambuena
11fe6cfbb0
Add test ipWhistelist = []
...
This test ipWhistelist on [] to access all IPs
Creates a request to localhost and port added in configuration and
check if gets 200 HTTP code.
2017-03-08 10:30:27 -03:00
Rodrigo Ramírez Norambuena
a15b8077a3
Add test without access by ipWhistelist
...
This test set a invalid IP address for not have access to MagicMirror.
Creates a request to localhost and port added in configuration and check if
gets 403 HTTP code.
2017-03-07 19:50:19 -03:00
Rodrigo Ramírez Norambuena
db87f9e15b
init sample test case newsfeed_spec
2017-02-20 08:19:36 -03:00
Michael Teeuw
6be5fac953
Merge pull request #725 from roramirez/compliments-anytime
...
Test anytime compliments module.
2017-02-20 19:54:33 +01:00
Rodrigo Ramírez Norambuena
5af2768d33
refactor afterEach and beforeEach compliments_spec
2017-02-20 05:25:16 -03:00
Rodrigo Ramírez Norambuena
474695643f
Second test case anytime feature module compliments
...
Suggested by @fewieden PL #725
2017-02-20 04:59:15 -03:00
Rodrigo Ramírez Norambuena
97ab88b39a
Modified test compliments anytime this follow configuration:
...
{
morning: [],
afternoon: [],
evening: [],
anytime: ["Anytime here"]
}
2017-02-20 01:52:07 -03:00
Rodrigo Ramírez Norambuena
3773d40201
Refactoring some e2e tests. Now is use a global-setup instead of
...
repeat repeat code to setup tests enviroment.
2017-02-19 21:06:38 -03:00
Rodrigo Ramírez Norambuena
1a296a8ca1
Test anytime compliments module.
...
feature introduced 79c79146a5df730cb8e8eee1cc1008639a2c21c7
2017-02-18 23:38:39 -03:00
Rodrigo Ramírez Norambuena
e62df3b3b1
Increment timeout e2e test to 20000 ms
2017-02-12 15:42:00 -03:00
Rodrigo Ramírez Norambuena
fd9963e7eb
Testing default modules
2017-02-11 21:03:07 -03:00
Chris van Marle
9064769185
Check for dev console
2017-02-11 13:43:03 +01:00
Chris van Marle
5fc16bdbfb
Fix sabado in clock_es_spec.js test
...
Fixes #712
2017-02-11 13:41:00 +01:00
Rodrigo Ramírez Norambuena
f57ad57e62
unit test global.version
2017-02-07 19:35:51 -03:00
Michael Teeuw
0f0a71a109
Merge pull request #689 from roramirez/test-compliments
...
add test parts of day for compliments module
2017-02-08 09:14:23 +01:00
Rodrigo Ramírez Norambuena
03f5d9b102
Split test for parts of day in compliments module
2017-02-07 16:49:07 -03:00
Michael Teeuw
6b17e1820c
Merge pull request #693 from qistoph/testdevarg
...
Test "dev" argument
2017-02-07 16:27:14 +01:00
Rodrigo Ramírez Norambuena
6fcaec3ca8
add test parts of day for compliments module
2017-02-06 00:28:08 -03:00
Chris van Marle
14c0307c09
Fix grunt error
2017-02-05 12:26:42 +01:00
Chris van Marle
42f22119f2
Add test for 'dev' argument
2017-02-05 11:38:01 +01:00
Chris van Marle
d004c0ccd1
Split translation key testing
...
All keys in a translation file should be in the base file (en.json).
When there are keys in the base file that are not in a translation,
the translation file test is skipped.
2017-02-03 10:10:03 +01:00
Chris van Marle
406ae4e8c3
Skip translation test on fail
2017-02-02 14:28:59 +01:00
Chris van Marle
cd8bee1371
Run App in vm
2017-02-02 10:32:35 +01:00
Chris van Marle
123392c549
Translations test
2017-02-02 10:32:06 +01:00
Michael Teeuw
fd738e5c8b
Merge pull request #677 from roramirez/test-displayseconds-false-clock
...
add test with displaySeconds config disabled for clock module
2017-02-01 17:00:53 +01:00
Rodrigo Ramírez Norambuena
6f95b2c2ad
add test with displaySeconds config disabled for clock module
2017-02-01 14:33:17 -03:00
Rodrigo Ramírez Norambuena
c6f5c120ba
add tests clock module variant language es
2017-02-01 14:12:27 -03:00
Sergey Morozov
fc2a554415
fix for 12hr regex
...
thanks to @roramirez for testing and catching it.
2017-01-31 12:24:11 -08:00
Rodrigo Ramírez Norambuena
aeb3ccaf09
Remove extra spaces and lines in tests.
2017-01-31 17:02:18 -03:00
Sergey Morozov
86fdd91597
Restructured Test Suite
...
- separated tests into e2e and unit directories
- created configs directory structure to support test framework
- added/modified `npm run test`, `npm run test:unit` and `npm run test:e2e` to target all, unit and e2e tests respectively
- modified some of the test names to be more descriptive
New structure of the Test Suite has following directory tree:
```
tests
├── configs
│ ├── env.js
│ └── modules
│ ├── clock
│ │ ├── clock_12hr.js
│ │ ├── clock_24hr.js
│ │ └── clock_showPeriodUpper.js
│ └── helloworld
│ └── helloworld.js
├── e2e
│ ├── env_spec.js
│ └── modules
│ ├── clock_spec.js
│ └── helloworld_spec.js
└── unit
├── functions
│ └── cmp_versions_spec.js
└── global_vars
└── root_path_spec.js
```
2017-01-31 11:08:53 -08:00
Rodrigo Ramírez Norambuena
e2dc5ef4f2
fix eslint change single quote by double quote
2017-01-30 12:46:21 -03:00
Rodrigo Ramírez Norambuena
c75ee042a8
add e2e test enviroment
2017-01-30 12:36:11 -03:00
Rodrigo Ramírez Norambuena
d474d518ca
test e2e module helloworld
2017-01-30 12:24:49 -03:00
Chris van Marle
36ead2251a
Fix grunt errors
2017-01-25 11:58:20 +01:00
Chris van Marle
7dbfa0b203
Add root_path testing
2017-01-24 17:58:04 +01:00
Sergey Morozov
690567659c
Minor clean up for test suite
...
@roramirez thanks for starting adding tests. I figured that we might as well grunt them and follow same rules for linting as we do for rest of JS code in the repo.
I've made following minor modifications:
- added tests to the grunt target
- fixed indentation in package.json
- made tests a bit more descriptive
- fixed eslint errors surfaced by grunt
2017-01-23 09:59:19 -08:00
Rodrigo Ramírez Norambuena
08cbac6277
minor fix textual
2017-01-21 11:04:11 -03:00
Rodrigo Ramírez Norambuena
3a8d72db31
init tests:
...
This patch propouse use the mocha for testing MagicMirror.
2017-01-15 15:40:23 -03:00