generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add script for performance measurements for metadata gen
- Loading branch information
1 parent
b3450e0
commit a76c203
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
/* eslint-disable no-console */ | ||
import {loadApiExtract, ApiExtract} from "../../src/utils/ApiExtract.js"; | ||
|
||
const main = async () => { | ||
try { | ||
const apiExtract = await loadApiExtract(); | ||
|
||
// Test Case 1: Check if option "backgroundColor" in "sap.m.App" exists | ||
// (DON'T check borrowed ones): | ||
// TODO: | ||
|
||
// Test Case 2: Check if option "pages" in "sap.m.App" exists | ||
// (check borrowed ones): | ||
// TODO: | ||
|
||
// Test Case 3: Collect all properties of "sap.m.App" | ||
// (DON'T collect borrowed ones): | ||
// TODO: | ||
|
||
// Test Case 4: Collect defaultAggregation of "sap.m.App" | ||
// (collect borrowed ones): | ||
const defaultAggregation = apiExtract.getDefaultAggregation("sap.m.App"); | ||
console.log(defaultAggregation); | ||
|
||
// TODO: add performance measurements | ||
} catch (error) { | ||
console.log(error); | ||
process.exit(1); | ||
} | ||
}; | ||
|
||
await main(); |
This file contains 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