Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit d09fa7a

Browse files
authored
Merge pull request #64 from Aircloak/obrok/remove-frontend
Remove frontend tests
2 parents cac99c5 + ed754c2 commit d09fa7a

25 files changed

+0
-2268
lines changed

README.md

-45
Original file line numberDiff line numberDiff line change
@@ -25,48 +25,3 @@ If errors are encountered, a notification email is sent to the address specified
2525

2626
__NOTE__: Because of the way queries are executed (polling is used to wait for a query to complete),
2727
timing information is accurate only within 1% of the test timeout value or 2 seconds, whichever is greater.
28-
29-
### Frontend tests
30-
31-
The tests driving the system through the frontend are contained in the `/frontend` directory. The deployed version can
32-
be found on `srv-76-131:/aircloak/tests/frontend`. They are run an hour after the backend tests, on a separate
33-
instance of cloak/air called `browser_test` that's deployed from master just before running the tests.
34-
35-
#### DB cleaning
36-
37-
The tests run a script (`/frontend/reset_db.sh`) that clears the database before each run. When developing you can login
38-
to `srv-76-131` and run the script from there to get the same result.
39-
40-
#### Running locally
41-
42-
You can run the tests locally with:
43-
44-
```bash
45-
make test
46-
```
47-
48-
This will install node dependencies and download and run a selenium docker image before running the tests.
49-
50-
#### Running one file
51-
52-
Assuming you installed dependencies (`make deps && make start_deps`) you can run a single file with:
53-
54-
```bash
55-
node_modules/.bin/wdio wdio.conf.js --spec test/file_to_run.js
56-
```
57-
58-
#### Debugging
59-
60-
You can watch the browser while the tests run if you start a debug version of the selenium image in place of the regular
61-
one:
62-
63-
```bash
64-
# Remove current selenium
65-
docker rm -f selenium
66-
67-
# Download and run the debug version mapping the VNC port 5900
68-
docker run --name selenium -d -p 4444:4444 -p 5900:5900 selenium/standalone-chrome-debug
69-
```
70-
71-
You will also need to install a VNC viewer. After that just point your viewer to localhost and provide `secret` when
72-
asked for a password.

deploy.sh

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ cd "$(dirname "$0")"
55
scp run.sh srv-76-131:/aircloak/tests/integration/
66

77
./backend/deploy.sh # backend files
8-
./frontend/deploy.sh # frontend files
98

109
# Deploy common files
1110
scp -r common srv-76-131:/aircloak/tests/integration/

frontend/.babelrc

-3
This file was deleted.

frontend/.gitignore

-3
This file was deleted.

frontend/Makefile

-10
This file was deleted.

frontend/config.json

-6
This file was deleted.

frontend/deploy.sh

-5
This file was deleted.

frontend/logs/.gitkeep

Whitespace-only changes.

frontend/package.json

-13
This file was deleted.

frontend/reset_db.sh

-20
This file was deleted.

frontend/run.sh

-14
This file was deleted.

frontend/start_dependencies.sh

-16
This file was deleted.

frontend/support/data_source.js

-23
This file was deleted.

frontend/support/group.js

-18
This file was deleted.

frontend/support/random.js

-1
This file was deleted.

frontend/support/session.js

-21
This file was deleted.

frontend/support/user.js

-37
This file was deleted.

frontend/test/group_test.js

-60
This file was deleted.

frontend/test/login_test.js

-39
This file was deleted.

frontend/test/profile_test.js

-26
This file was deleted.

0 commit comments

Comments
 (0)