generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 8
feat: Detect non-Test Starter test setups #448
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
210c897
feat: Detect test resources in HTML test files
d3xter666 8a9b06e
feat: Detect attachInit or ready in *.qunit.js
d3xter666 7cfc69f
refactor: Update messages
d3xter666 680dd5b
refactor: TestStarter detection for html files
d3xter666 bd9cfd3
test: Update snapshots
d3xter666 0e2bb7f
feat: Detect sap.ui.define
d3xter666 0a05175
fix: Update snapshots
d3xter666 4d50809
fix: Merge conflicts
d3xter666 7d7aa6e
fix: Detect correctly sap.ui.define calls
d3xter666 bd7c86e
fix: Avoid false positives by improving test filename checks
d3xter666 6c25a1e
test: Remove false positives
d3xter666 e869a3f
test: Fix merge conflicts
d3xter666 4158789
refactor: Better handling for createSuite.js check
d3xter666 9d97639
refactor: More precise detection for html test files
d3xter666 1c6034f
refactor: Proper handling of qunit.html files
d3xter666 fb12ffb
refactor: Less strict naming checks
d3xter666 9523ebe
refactor: Improve files check
d3xter666 f000def
fix: Pattern
d3xter666 9b3606f
refactor: Deduplicate test starter messages
d3xter666 81f02d1
test: Add negative examples
d3xter666 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 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 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
16 changes: 16 additions & 0 deletions
16
test/fixtures/linter/projects/sap.f/test/sap/f/testsuite.qunit.html
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>QUnit test suite for Todo App</title> | ||
<script | ||
src="../resources/sap/ui/test/starter/createSuite.js" | ||
data-sap-ui-testsuite="test-resources/sap/f/testsuite.qunit" | ||
data-sap-ui-resource-roots='{ | ||
"test-resources.sap.f": "./" | ||
}' | ||
></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
21 changes: 21 additions & 0 deletions
21
test/fixtures/linter/projects/sap.f/test/sap/f/testsuite.qunit.js
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
sap.ui.define(function () { | ||
"use strict"; | ||
return { | ||
name: "QUnit test suite for sap.f", | ||
defaults: { | ||
page: "ui5://test-resources/sap/f/Test.qunit.html?testsuite={suite}&test={name}", | ||
qunit: { | ||
version: 2 | ||
}, | ||
sinon: { | ||
version: 4 | ||
}, | ||
ui5: { | ||
language: "EN", | ||
theme: "sap_horizon" | ||
} | ||
}, | ||
tests: { | ||
} | ||
}; | ||
}); |
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
Binary file not shown.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.