Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
58628be
Create node.js.yml
mpaj Nov 28, 2024
379f518
test nodejs runner
mpaj Nov 28, 2024
492438c
add coveralls
mpaj Nov 28, 2024
9fa3354
fix workflow?
mpaj Nov 28, 2024
3a2e1b1
Add package.json and initial tests for clamp.js
Nov 28, 2024
2d7a273
Merge remote-tracking branch 'origin/mocha-chai-testing' into mpaj-no…
mpaj Nov 28, 2024
d5d753d
fix submodule
mpaj Nov 28, 2024
a396071
update tests in package.json
mpaj Nov 28, 2024
0b9182f
add npm install
mpaj Nov 28, 2024
a0090f9
add submodule update every time
mpaj Nov 28, 2024
8c55b7b
add coveralls
mpaj Nov 28, 2024
82cb6cf
make coveralls a seperate job
mpaj Nov 28, 2024
b76065c
fix coverage?
mpaj Nov 28, 2024
a63329d
add always statement
mpaj Nov 28, 2024
b278ebb
Add c8 coverage
Dec 4, 2024
224f9cf
Add c8 configurations to package.json
Dec 4, 2024
02fca9f
Combine coverage action to the end of build
Dec 4, 2024
0b6476a
Fix yml
Dec 4, 2024
a2e31d9
Add continue on error
Dec 4, 2024
50a82cd
Update gitignore
Dec 10, 2024
1f6b117
Fix whitespace issues
Dec 10, 2024
ee6afa1
Comment out failing tests to test coveralls upload
Dec 10, 2024
ea61899
Add coveralls badge to project
mpaj Dec 10, 2024
5520b1e
Add tests for ceil and defaultTo
mpaj Dec 11, 2024
6016334
Fix error in ceil.test.js
Dec 11, 2024
a782c34
Try to fix coverage upload regardless of test result.
mpaj Dec 11, 2024
6c7f228
Add test for every.js
mpaj Dec 11, 2024
994fbf9
Add test for capitalize.js
mpaj Dec 11, 2024
e638c9a
Add tests for chunk, compact, and words functions
Dec 11, 2024
311f16a
Add tests for isObject and isObjectLike
mpaj Dec 11, 2024
752e21b
Continue running npm test despite failures.
mpaj Dec 11, 2024
94012a6
Remove some redundant test cases from clamp.test.js and uncomment fai…
Dec 11, 2024
fcb1f88
Remove .internal library from coverage calculation. Up version number.
mpaj Dec 11, 2024
d181b86
Update README.md to include test running instructions.
Dec 11, 2024
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
18 changes: 0 additions & 18 deletions .github/workflows/actions-demo.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest
#continue-on-error: true

strategy:
matrix:
node-version: [22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: git submodule update --init --recursive
- run: npm install
- run: npm ci
- run: npm run build --if-present
- run: npm test || true

- name: Upload Coverage to Coveralls
if: always()
uses: coverallsapp/[email protected]
with:
path-to-lcov: coverage/lcov.info
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# macOS
.DS_Store

# Runtime data
pids
*.pid
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "COMP.SE.200-2024-2025-1"]
path = COMP.SE.200-2024-2025-1
url = https://github.com/otula/COMP.SE.200-2024-2025-1.git
1 change: 1 addition & 0 deletions COMP.SE.200-2024-2025-1
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[![Coverage Status](https://coveralls.io/repos/github/mpaj/swtesting-YI/badge.svg?branch=mpaj-nodejs-build)](https://coveralls.io/github/mpaj/swtesting-YI?branch=mpaj-nodejs-build)

# Running the tests

To run the tests, you need to have the following installed:

- Node.js
- npm

To install the dependencies, run:

```
npm install
```

To run the tests and generate coverage reports, run:

```
npm test
```

Coverage reports will be generated in the `coverage` directory.
Loading
Loading