-
Notifications
You must be signed in to change notification settings - Fork 333
WPB-5667: Updating integration tests to better handle comments and haddock. #3749
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
Changes from 2 commits
def5981
7301a7d
c4da220
59737c7
116403e
5589e26
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Improved how tests are automatically extracted from the `integration` test suite. | ||
|
|
||
| The test extractor parser has been improved to handle block comments, and to more strictly check for Haddock documentation for each test. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,6 +17,7 @@ custom-setup | |
| , containers | ||
| , directory | ||
| , filepath | ||
| , haskell-src-exts | ||
|
|
||
| common common-all | ||
| default-language: GHC2021 | ||
|
|
@@ -25,6 +26,7 @@ common common-all | |
|
|
||
| default-extensions: | ||
| NoImplicitPrelude | ||
| NoImportQualifiedPost | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is required so that ormolo doesn't rewrite all of the imports and break haskell-src-exts' parsing. This comment is moved around in sanitize-pr, and is otherwise very annoynig. |
||
| AllowAmbiguousTypes | ||
| BangPatterns | ||
| BlockArguments | ||
|
|
@@ -68,6 +70,7 @@ common common-all | |
| UndecidableInstances | ||
| ViewPatterns | ||
|
|
||
| -- This is required so that ormolo doesn't rewrite all of the imports and break haskell-src-exts' parsing | ||
| executable integration | ||
| import: common-all | ||
| main-is: ./main.hs | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,7 +27,18 @@ import SetupHelpers | |
| import Testlib.Prelude | ||
| import Testlib.ResourcePool | ||
|
|
||
| -- @SF.Federation @SF.Separation @TSFI.RESTfulAPI @S2 | ||
| -- These two commented out tests exist to test the Setup.hs code. | ||
| -- Both of these tests should not appear in the output. | ||
|
|
||
| -- testBar :: HasCallStack => App () | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These could go anywhere, this was the file I had open when I thought of this test. |
||
| -- testBar = pure () | ||
|
|
||
| {- | ||
| testBaz :: HasCallStack => App () | ||
| testBaz = pure () | ||
| -} | ||
|
|
||
| -- | @SF.Federation @SF.Separation @TSFI.RESTfulAPI @S2 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mythsunwind is your tool to still in place and does it handle the additional pipe here? |
||
| -- | ||
| -- The test asserts that, among others, remote users are removed from a | ||
| -- conversation when an access update occurs that disallows guests from | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.