Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/n4js-libs/axios-1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mmews-n4 authored Apr 18, 2024
2 parents 7aca8e4 + f8f3fec commit eb9b795
Show file tree
Hide file tree
Showing 846 changed files with 60,266 additions and 45,108 deletions.
8 changes: 3 additions & 5 deletions n4js-libs/npm-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@ echo "========= Running tests defined in the individual packages of yarn workspa


echo "========= Running mangelhaft tests for all packages in yarn workspace 'n4js-libs' ..."
REPORT_NAME="./build/report.xml"
mkdir -p "./build"
echo "Run mangelhaft ..."
packages/n4js-mangelhaft-cli/src-gen/org/eclipse/n4js/mangelhaft/runner/node/NodeTestMain.js \
./packages/org.eclipse.n4js.mangelhaft.test/test-catalog.json \
--xunitReportFile $REPORT_NAME \
./packages/n4js-mangelhaft-cli/src-gen/org/eclipse/n4js/mangelhaft/runner/node/NodeTestMain.js \
packages/* \
--xunitReportFile "./build/report.xml" \
--sonarTestExecutionReportFile ./build/sqreport.xml \
--xunitReportName test-report \
--xunitReportPackage n4js-libs-report \
--nycCoveragePath ./build/coverage.json
echo "Done running mangehaft."
echo "Saved test report at: ${REPORT_NAME}"
2 changes: 1 addition & 1 deletion n4js-libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"devDependencies": {
"json": "11.0.0",
"lerna": "7.1.0",
"semver": "7.5.3"
"semver": "7.5.4"
},
"scripts": {
"bundle": "yarn workspace n4js-runtime bundle",
Expand Down
10 changes: 5 additions & 5 deletions n4js-libs/packages/n4js-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
},
"dependencies": {
"@types/node": "^16",
"@types/debug": "4.1.7",
"@types/npmlog": "4.1.4",
"follow-redirects": "1.14.9",
"@types/debug": "4.1.12",
"@types/npmlog": "7.0.0",
"follow-redirects": "1.15.6",
"decompress": "4.2.1",
"debug": "~4.3.1",
"npmlog": "4.1.2",
"debug": "~4.3.4",
"npmlog": "7.0.1",
"n4js-runtime": "^0.1.0",
"n4js-runtime-es2015": "^0.1.0",
"n4js-runtime-esnext": "^0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion n4js-libs/packages/n4js-cli/src/n4js/Globals.n4js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export public const JRE_INFO_MAP = new Map<Platform, JreInfo>([
[Platform.x64_sunos, null],
[Platform.x32_win32, {bin: "bin/java.exe", name: "OpenJDK-jre_x86-32_windows_hotspot_2021-05-06-23-30.zip"}],
[Platform.x64_win32, {bin: "bin/java.exe", name: "OpenJDK-jre_x64_windows_hotspot_2021-05-06-23-30.zip"}]]
as Iterable<Iterable2<Platform, JreInfo>>);
);


@StringBased
Expand Down
8 changes: 4 additions & 4 deletions n4js-libs/packages/n4js-mangelhaft-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"type": "module",
"dependencies": {
"@types/node": "^16",
"@types/debug": "4.1.7",
"@types/debug": "4.1.12",
"@types/glob": "7.2.0",
"cli-color": "~1.2.0",
"debug": "~4.3.1",
"debug": "~4.3.4",
"glob": "^7.2.3",
"istanbul-lib-coverage": "^3.2.0",
"minimatch": "9.0.2",
"istanbul-lib-coverage": "^3.2.2",
"minimatch": "9.0.3",
"n4js-runtime": "^0.1.0",
"n4js-runtime-es2015": "^0.1.0",
"n4js-runtime-esnext": "^0.1.0",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@ const cwd = process.cwd();
const resolvePath = (p: string): string => lib_path.resolve(cwd, p);

const nomnomOptions: Object = {
testCatalog: {
testCatalogs: {
position: 0,
list: false,
default: ".",
metavar: "PATH|NPM-relpath",
help: "Test catalog (JSON) or project location to be inspected for test cases."
list: true,
default: ["."],
metavar: "PATH|NPM-relpath|glob",
help: "Test catalog (JSON) or project location(s) to be inspected for test catalog(s)."
},
filter: {
abbr: "f",
list: true,
help: "Filter for matching test cases."
},
mergeResult: {
abbr: "mr",
flag: true,
help: "Merge all results into a single file stored in CWD."
},
xunitReportFile: {
metavar: "PATH",
transform: resolvePath,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,5 @@
* NumberFour AG - Initial API and implementation
*/

import NodeTestAPI from "org/eclipse/n4js/mangelhaft/runner/node/NodeTestAPI";
import {NodeTestCLI} from "org/eclipse/n4js/mangelhaft/runner/node/NodeTestCLI";
import {waitAndExitProcess} from "org/eclipse/n4js/mangelhaft/util/proc";

waitAndExitProcess(async () => {
const options = NodeTestCLI.parseCommandLine();
if (options) {
await NodeTestAPI.exec(options);
}
});
import("./NodeTestRunner.js");
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,20 @@ import { XUnitReportSpec } from "org/eclipse/n4js/mangelhaft/reporter/xunit/XUni
*/
export default public class NodeTestOptions extends XUnitReportSpec {
/**
* Test catalog to be tested.
* One or more files/directories/globs pointing to the test catalog to be tested.
*/
public testCatalog: string;
public testCatalogs: string[];

/**
* Filter for matching test cases.
*/
public filter: string[];

/**
* Merge all results into a single file stored in CWD.
*/
public mergeResult: boolean;

/**
* Sonar base dir.
*/
Expand Down
Loading

0 comments on commit eb9b795

Please sign in to comment.