-
Notifications
You must be signed in to change notification settings - Fork 84
140 testing mechanism #188
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
Open
pseewald
wants to merge
28
commits into
fortran-lang:master
Choose a base branch
from
pseewald:140-testing-mechanism
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
e99c881
Tests: change directory structure of automatic test detection
pseewald fae7d60
new testing mechanism working now
pseewald b9c5e7d
Unit tests: use fprettify as a module instead of relying on subprocesses
pseewald ce9d619
finish core work on test reorganization
pseewald e1d7aa7
suppress exceptions from test output (closes #134)
pseewald 1576631
polishing test suites
pseewald 1303fe9
Splitting test class into unit and integration tests
pseewald 02728b2
minor cleanups and test fixes
pseewald bb668c5
More test fixes
pseewald 74cb5ad
More test fixes
pseewald 72bc6ce
Updating test results
pseewald 24e71d9
Setting limit to number of lines per file (to speedup cron tests)
pseewald 7bfac51
Allow to set options as annotations within Fortran file
pseewald 2856e8e
cosmetic
pseewald 3063fdd
Fix bug related to first line
pseewald eec327e
Fix regex
pseewald 39a7f00
Update cron test results
pseewald 15b6ec2
Clean up file
pseewald 65237e8
Explaining test mechanism in README.md
pseewald 2e97c9c
Further working on README.md for tests
pseewald c173257
update README.md
pseewald f23c7e6
minor change
pseewald c1cbf90
removed todo
pseewald 7f487e6
Merge branch 'master' into 140-testing-mechanism
pseewald bb37a80
Adapt test workflows to new test mechanism
pseewald c7ddfff
fix issues with gh actions test workflow
pseewald a26d994
simplify cli as suggested by @max-models
pseewald 6120962
fix typos (as suggested by @dbroemmel)
pseewald File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
fortran_tests/before/example_swapcase.f90 → examples/in/example_swapcase.f90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
|
|
||
| ! fprettify: --case 1 1 1 1 | ||
| MODULE exAmple | ||
| IMPLICIT NONE | ||
| PRIVATE | ||
|
|
||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't check the actual output, but should more than the case change? There are more below.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this test case uses default formatting, and on top of that it lowercases keywords, as specified by a special annotation at the top of the file:
fprettify/examples/in/example_swapcase.f90
Line 1 in c7ddfff
This is in line with how all unit tests are written - all options are tested on top of default options.
FYI: this file has changed because only with the changes in this pr, we are able to test files with custom options, see also my comment #49 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I was thinking has happened. Sorry, I should have added that I just wanted to double check that's the reason. I was surprised the splitting of the
endif/end ifwould only show up there.