Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add unit tests #40

Merged
merged 32 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
193bb45
added unit tests and fixtures
PhotoNomad0 Sep 9, 2020
e987ae4
added unit tests and fixtures
PhotoNomad0 Sep 9, 2020
eec4a33
added unit tests and fixtures
PhotoNomad0 Sep 9, 2020
3b4a71c
tweaks
PhotoNomad0 Sep 10, 2020
5f06f1a
added more tests
PhotoNomad0 Sep 10, 2020
1e12e30
Merge branch 'feature-mcleanb-addCacheControl' into feature-mcleanb-a…
PhotoNomad0 Sep 11, 2020
d566cd8
merged with Roberts latest and updated snapshots
PhotoNomad0 Sep 11, 2020
13838bb
Merge branch 'master' of https://github.com/unfoldingWord/content-val…
PhotoNomad0 Sep 14, 2020
95daa9d
merged with Roberts latest and updated snapshots
PhotoNomad0 Sep 14, 2020
631e46a
Merge branch 'master' of https://github.com/unfoldingWord/content-val…
PhotoNomad0 Sep 17, 2020
9876c20
fix unit tests after update with master.
PhotoNomad0 Sep 17, 2020
9733ce7
adding tests for checkBookPackage()
PhotoNomad0 Sep 17, 2020
ae1fe16
adding tests for checkBookPackage()
PhotoNomad0 Sep 17, 2020
158b6ad
adding tests for checkTN_TSVDataRow()
PhotoNomad0 Sep 17, 2020
cc5f056
fix case in checkBookPackage() where it was using the old checkingOpt…
PhotoNomad0 Sep 18, 2020
7a84794
adding travis for unit tests
PhotoNomad0 Sep 18, 2020
8471edb
adding github action for unit tests
PhotoNomad0 Sep 18, 2020
7348f90
fixes to run jest unit tests
PhotoNomad0 Sep 18, 2020
cf8e3e4
disble cypress tests
PhotoNomad0 Sep 18, 2020
e95f3ab
comments
PhotoNomad0 Sep 19, 2020
bf76335
Merge branch 'master' of https://github.com/unfoldingWord/content-val…
PhotoNomad0 Sep 21, 2020
64f4224
cleanup after merging latest master
PhotoNomad0 Sep 21, 2020
0559508
fix code coverage
PhotoNomad0 Sep 21, 2020
e362fd1
add checking for invalid/missing languages and missing repos
PhotoNomad0 Sep 21, 2020
bedd147
Merge remote-tracking branch 'origin/master' into feature-mcleanb-add…
PhotoNomad0 Sep 21, 2020
915e1dc
categorizing tests
PhotoNomad0 Sep 21, 2020
9d7e2e0
added more tests
PhotoNomad0 Sep 21, 2020
6388426
added more tests
PhotoNomad0 Sep 22, 2020
923b41a
fixes for tQ testing, added filtering by book
PhotoNomad0 Sep 22, 2020
55acca6
clean out quote tests.
PhotoNomad0 Sep 22, 2020
576f206
more link tests.
PhotoNomad0 Sep 22, 2020
f0e623d
revert filter added to tQ tests.
PhotoNomad0 Sep 22, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 3 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"presets": [ "@babel/preset-env", "@babel/preset-react" ],
"plugins": [ "@babel/plugin-transform-runtime" ]
"plugins": [ "@babel/plugin-transform-runtime" ],
"sourceMaps": "inline",
"retainLines": true
}
File renamed without changes.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install modules
run: yarn

- name: Run tests
run: yarn test

- uses: codecov/codecov-action@v1
with:
file: ./coverage/clover.xml
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ typings/
# VSCode
.vscode

# Intellij
.idea

# Optional npm cache directory
.npm
.yalc/
Expand Down
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sudo: false
language: node_js
node_js:
- 12.16.3
os:
- linux
script:
- jest
3 changes: 0 additions & 3 deletions __tests__/__snapshots__/tn-table-row-check.test.js.snap

This file was deleted.

45 changes: 0 additions & 45 deletions __tests__/tn-table-row-check.test.js

This file was deleted.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"start": "yarn styleguide:start",
"styleguide:start": "styleguidist server",
"styleguide:build": "styleguidist build",
"test:unit": "eslint ./src && jest __tests__",
"test": "yarn test:unit && cat ./coverage/lcov.info | coveralls",
"test:unit": "eslint ./src && jest --watchAll=false --coverage",
"test": "yarn test:unit",
"create-coverage-badge": "bash scripts/create-badge-json.sh"
},
"dependencies": {
Expand Down Expand Up @@ -49,7 +49,6 @@
"@types/jest": "24.0.22",
"babel-eslint": "^10.1.0",
"coveralls": "^3.0.9",
"eslint": "^5.12.1",
"eslint-config-google": "^0.12.0",
"eslint-config-react-app": "^5.2.1",
"eslint-plugin-flowtype": "^5.2.0",
Expand All @@ -60,6 +59,7 @@
"eslint-plugin-react-hooks": "^4.1.0",
"fs-extra": "4.0.3",
"gh-pages": "^3.1.0",
"jest": "^24.9.0",
"react": "^16.8.6",
"react-docgen": "4.1.1",
"react-dom": "^16.8.6",
Expand Down
Loading