Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a8b26d

Browse files
Constantin Krügeruniqueck
authored andcommitted
New: initial port from HtmlSanityCheck project
1 parent 598e3c0 commit 3a8b26d

File tree

60 files changed

+6997
-989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+6997
-989
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ jobs:
4141
run: npm run lint
4242

4343
- name: test
44-
run: npm test
44+
run: npm test
45+
46+
- name: Archive test results
47+
uses: actions/upload-artifact@v4
48+
if: always()
49+
with:
50+
name: test-report-${{ matrix.os }}-${{ matrix.node-version }}
51+
path: reports/cucumber.html
52+
retention-days: 5

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
.idea/
22
node_modules/
3+
*.iml
4+
.lfet/tool/
5+
lfet/checker/*.$bak
6+
lfet/checker/*.lfet_$temp
7+
*.tgz
38
reports/
4-
.lfet/tool
9+
test/features/checker/*_log_*.txt

.lfet/lfet.uniqueck.htmlsanitycheck.js.240528b.info

Lines changed: 15 additions & 0 deletions
Large diffs are not rendered by default.
9.06 KB
Binary file not shown.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This file is used to define the limits within which the
2+
# decision table tool LF-ET can be freely used in this project.
3+
#
4+
# This file must not be changed, its checksum value must match
5+
# with the checksum value stored in the corresponding license file.
6+
#
7+
# More about LF-ET can be found here:
8+
# - https://lohrfink.de/de/produkte/lf-et/
9+
# - https://lohrfink.de/en/solutions/lf-et/
10+
#
11+
# More about the rulebased.group can be found here:
12+
# - https://rulebased.group/
13+
#
14+
# Any questions or CER's regarding LF-ET or this project are welcome here:
15+
16+
17+
LFET:
18+
19+
Project:
20+
21+
Url:
22+
# List of global unique project ID's
23+
- [email protected]:uniqueck/htmlSanityCheck.js.git
24+
- https://github.com/uniqueck/htmlSanityCheck.js.git
25+
- https://github.com/uniqueck/htmlSanityCheck.js/
26+
27+
FileNamePattern:
28+
# List of regular expressions for allowed file names
29+
# incl. common 'save as' and export formats
30+
- ^.*Checker.lfet$
31+
- ^.*Checker.testcases.feature$
32+
- ^.*Checker.js$
33+
- ^.*CheckerDecisionLogic.js$
34+
35+
DirectoryNamePattern:
36+
# List of regular expressions for allowed directory names
37+
# relative to the project content root
38+
# use always '/' as file separator
39+
- ^[/]?lfet/checker[/]?$
40+
- ^[/]?lib/checker/lfet[/]?$
41+
- ^[/]?test/features/checker[/]?$

.mocharc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
recursive: true

.npmrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
registry=https://registry.npmjs.org/
2-
cat -
1+
registry=https://registry.npmjs.org

bin/htmlSanityCheck

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env node
2+
3+
'use strict'
4+
5+
process.title = 'HtmlSanityCheck'
6+
7+
const {loadOptions} = require('../lib/cli/options')
8+
9+
const htmlSanityCheckArgs = {}
10+
11+
const opts = loadOptions(process.argv.slice(2))
12+
// sort options into "node" and "mocha" buckets
13+
Object.keys(opts).forEach(opt => {
14+
htmlSanityCheckArgs[opt] = opts[opt];
15+
})
16+
17+
require('../lib/cli/cli').main([], htmlSanityCheckArgs)

cucumber.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
default: {
3+
paths: ['test/features/**/*.testcases.feature'],
4+
recursive: true,
5+
format: ['html:reports/cucumber.html', 'json:reports/cucumber.json'],
6+
tags: "not @incomplete"
7+
},
8+
}

lfet/checker/BrokenHttpLinksChecker.lfet

Lines changed: 355 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)