Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file added docs/testing-deliverables/task-1/srs.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
40 changes: 40 additions & 0 deletions docs/testing-deliverables/task-6/backend/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version: 2
jobs:
build:
docker:
# using custom image, see .circleci/images/primary/Dockerfile
- image: circleci/cci-demo-docker-primary:0.0.2
working_directory: /src/


environment:
TEST_RESULTS: /tmp/test-results

steps:
- checkout
- setup_remote_docker

# This should go into custom primary image, here's only for the sake of explanation
- run:
name: Install Docker client
command: |
set -x
VER="17.03.0-ce"
curl -L -o /tmp/docker-$VER.tgz https://get.docker.com/builds/Linux/x86_64/docker-$VER.tgz
tar -xz -C /tmp -f /tmp/docker-$VER.tgz
mv /tmp/docker/* /usr/bin

# This should go into custom primary image, here's only for the sake of explanation
- run:
name: Install Docker Compose
command: |
set -x
curl -L https://github.com/docker/compose/releases/download/1.11.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose


- run:
name: Start container and run test
command: |
set -x
docker-compose up test --build --exit-code-from test
5 changes: 5 additions & 0 deletions docs/testing-deliverables/task-6/backend/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
+ docker-compose up test --build --exit-code-from test
ERROR: The Compose file './docker-compose.yml' is invalid because:
services.test.depends_on contains an invalid type, it should be an array

Exited with code exit status 1
22 changes: 22 additions & 0 deletions docs/testing-deliverables/task-6/frontend/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2.1

orbs:
node: circleci/node@4.7

jobs:
build-and-test:
docker:
- image: cimg/node:16.10
steps:
- checkout
- node/install-packages:
pkg-manager: yarn
- run:
name: Run tests
command: yarn test

workflows:
sample:
jobs:
- build-and-test

38 changes: 38 additions & 0 deletions docs/testing-deliverables/task-6/frontend/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
yarn run v1.22.11
$ react-scripts test
PASS src/layout/login-page/login-success/LoginSuccess.test.tsx (10.601 s)
PASS src/utils/CryptoUtils.test.ts (11.794 s)
PASS src/layout/central-layout/CentralLayout.test.tsx (17.202 s)
PASS src/layout/navigation-bar/roll-call-navigation-bar/RollCallNavigationBar.test.tsx (17.398 s)
PASS src/components/loading-table/LoadingTable.test.tsx (17.29 s)
PASS src/layout/not-found-page/NotFoundPage.test.tsx (17.206 s)
PASS src/layout/navigation-bar/student-navigation-bar/StudentNavigationBar.test.tsx (17.885 s)
PASS src/layout/navigation-bar/default-navigation-bar/DefaultNavigationBar.test.tsx (18 s)
PASS src/components/primary-button/PrimaryButton.test.tsx (17.793 s)
PASS src/components/main-card/MainCard.test.tsx (17.806 s)
PASS src/components/table-row/TableRow.test.tsx (18.003 s)
PASS src/components/subject-table/SubjectTable.test.tsx (17.913 s)
PASS src/layout/navigation-bar/teacher-navigation-bar/TeacherNavigationBar.test.tsx (17.992 s)
PASS src/components/logout-button/LogoutButton.test.tsx (18.116 s)
PASS src/layout/login-page/LoginPage.test.tsx (18.2 s)
PASS src/components/search-input/SearchInput.test.tsx (18.198 s)
PASS src/provider/UserProvider.test.tsx (18.309 s)
PASS src/layout/navigation-bar/authorized-navigation-bar/AuthorizedNavigationBar.test.tsx (18.408 s)
PASS src/layout/student-homepage/StudentHomepage.test.tsx (18.514 s)
PASS src/layout/attendance-page/AttendancePage.test.tsx (18.7 s)
PASS src/layout/navigation-bar/navigation-bar-link/NavigationBarLink.test.tsx (18.622 s)
PASS src/components/attend-to-class/attend-to-class-form/AttendToClassForm.test.tsx (18.92 s)
PASS src/layout/attendance-page/attendanceView/AttendanceView.test.tsx (18.822 s)
PASS src/App.test.tsx (18.822 s)
PASS src/layout/attendance-page/attendanceView/AttendanceCode/AttendanceCode.test.tsx (19.034 s)
PASS src/route/SwitchGuard.test.tsx (18.767 s)
PASS src/layout/lecture-code-accepted-modal/LecutureCodeAcceptedModal.test.tsx (19.085 s)
PASS src/components/attend-to-class/AttendToClass.test.tsx (19.687 s)
PASS src/layout/teacher-subject-management/TeacherSubjectManagement.test.tsx (20.137 s)

Test Suites: 29 passed, 29 total
Tests: 63 passed, 63 total
Snapshots: 0 total
Time: 26.891 s
Ran all test suites.
Done in 28.36s.
Loading