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

ci: CI Testing #57

Merged
merged 88 commits into from
Jul 26, 2024
Merged

ci: CI Testing #57

merged 88 commits into from
Jul 26, 2024

Conversation

bmingles
Copy link
Collaborator

@bmingles bmingles commented Jul 17, 2024

  • Setup CI for unit + e2e tests
  • PR shows summary comments added for

resolves #29

@deephaven deephaven deleted a comment from github-actions bot Jul 18, 2024
@deephaven deephaven deleted a comment from github-actions bot Jul 18, 2024
@bmingles bmingles force-pushed the 29-tests branch 4 times, most recently from e1b3a65 to 7577bf5 Compare July 18, 2024 19:12
@@ -1,5 +1,13 @@
{
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid"
"arrowParens": "avoid",
"overrides": [
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Apparently newer versions of Prettier add trailing commas to jsonc files which is not always supported.

Copy link
Member

Choose a reason for hiding this comment

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

I think this applies to .json files as well, no? I know package.json is not happy if you add a trailing comma

@bmingles bmingles force-pushed the 29-tests branch 2 times, most recently from cd8ab97 to 1f1103c Compare July 19, 2024 15:53
@deephaven deephaven deleted a comment from github-actions bot Jul 19, 2024
@bmingles bmingles force-pushed the 29-tests branch 2 times, most recently from ea2cb82 to a509b03 Compare July 19, 2024 23:46
Copy link

github-actions bot commented Jul 20, 2024

End-to-end Test Summary

Tests 📝Passed ✅Failed ❌Skipped ⏭️Pending ⏳Other ❓Flaky 🍂Duration ⏱️
220000000:28:35
A ctrf plugin

Detailed Test Results

NameStatusmsFlaky 🍂
should be able to load VSCodepassed ✅824
should load connection status bar itempassed ✅615
A ctrf plugin

Failed Test Summary

No failed tests ✨

Flaky Test Summary

No flaky tests detected. ✨

Copy link

github-actions bot commented Jul 20, 2024

Unit Test Summary

Tests 📝Passed ✅Failed ❌Skipped ⏭️Pending ⏳Other ❓Flaky 🍂Duration ⏱️
110000000:00:00
A ctrf plugin

Detailed Test Results

NameStatusmsFlaky 🍂
src/util/ExtendedMap.spec.ts: ExtendedMap Test Suite > getOrThrowpassed ✅2
A ctrf plugin

Failed Test Summary

No failed tests ✨

Flaky Test Summary

No flaky tests detected. ✨

@deephaven deephaven deleted a comment from github-actions bot Jul 20, 2024
@deephaven deephaven deleted a comment from github-actions bot Jul 20, 2024
@bmingles bmingles requested a review from mofojed July 20, 2024 00:34
@bmingles bmingles changed the title ci: End-to-end Tests ci: CI Testing Jul 20, 2024
Copy link
Member

@mofojed mofojed left a comment

Choose a reason for hiding this comment

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

Just a couple things to double check

@@ -1,5 +1,13 @@
{
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "avoid"
"arrowParens": "avoid",
"overrides": [
Copy link
Member

Choose a reason for hiding this comment

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

I think this applies to .json files as well, no? I know package.json is not happy if you add a trailing comma

CONTRIBUTING.md Outdated

### Unit Testing

TODO:
Copy link
Member

Choose a reason for hiding this comment

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

TODO - fill in or write a ticket

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the prettierrc thing does apply to json, but that already works as expected. The issue here is that prettier incorrectly adds trailing commas to jsonc. It doesn't do that for json

@bmingles bmingles requested a review from mofojed July 24, 2024 15:38
"test": "npm run ts:build && npm run ts:check && npm run test:lint && npm run test:unit",
"test:ci": "npm run test",
"test": "npm run test:unit",
"test:ci": "npm run ts:build && npm run ts:check && npm run test:lint && npm run test:unit",
Copy link
Member

Choose a reason for hiding this comment

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

Should consider using concurrently, though this works.

@bmingles bmingles merged commit 3be76c6 into main Jul 26, 2024
3 checks passed
@bmingles bmingles deleted the 29-tests branch July 26, 2024 20:50
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.

Setup unit / integration tests
2 participants