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

Integration test #25

Merged
merged 18 commits into from
Jul 30, 2020
Merged

Integration test #25

merged 18 commits into from
Jul 30, 2020

Conversation

kdzwinel
Copy link
Member

Adds one simple integration test that visits multiple known websites and verifies collected data.

I confirmed that this test would have prevented #24 :

failures

@kdzwinel kdzwinel requested a review from jdorweiler July 30, 2020 12:22
@@ -8,7 +8,7 @@
"scripts": {
"crawl": "node ./cli/crawl-cli",
"test": "npm run lint && tsc && npm run unit",
"unit": "find . -name \"*.test.js\" -not -path \"./node_modules/*\" -exec node {} \\;",
"unit": "node ./tests/runTests.js",
Copy link
Member Author

@kdzwinel kdzwinel Jul 30, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some test failures didn't cause the whole testing to fail, so I had to write my own small runner to work around this.

I guess, at some point, I should consider just using one of the existing test runners and don't try to, yet again, roll out my own math library.

@@ -20,7 +20,7 @@
"test"
],
"engines": {
"node": ">=10.0"
"node": ">=10.17"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unhandled-rejections=strict that allows us to throw when unhandled promise rejection happens is only available since 10.17

@jdorweiler
Copy link
Collaborator

👍 thanks for adding this

@jdorweiler jdorweiler merged commit b00ca90 into main Jul 30, 2020
@jdorweiler jdorweiler deleted the konrad/integration-test branch July 30, 2020 19:44
@loco22loco
Copy link

Adds one simple integration test that visits multiple known websites and verifies collected data.

I confirmed that this test would have prevented #24 :

failures

@kdzwinel
Copy link
Member Author

Thanks for double-checking @loco22loco!

Copy link

@loco22loco loco22loco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crawl-cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants