Skip to content

Commit

Permalink
Merge pull request #359 from openmainframeproject/Fix_exit_code
Browse files Browse the repository at this point in the history
Fixed - A bug where error code of 4 was not allowed so failing tests would not be shown properly
  • Loading branch information
TommyTechh authored Dec 5, 2024
2 parents 4faae86 + 6e37488 commit 51e9bc6
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Mock SQL tables
- Mock batch file I/O

## \[0.2.14\] 2024-12-05
- Fixed a bug where an exit code of 4 was not allowed.

## \[0.2.13\] 2024-10-17
- Fixing bug when JOIN followed by ON in next line is not only JOIN but f.ex. LEFT OUTER JOIN.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ As of March 2022 we could use help with:

## Downloads

Version 0.2.13 pre-release is available!
Version 0.2.14 pre-release is available!

[//]: # (- Find the download on the project home page on the [Neo Pragma site](https://neopragma.com/projects/cobol-check/).)
- Find distributions here: [Cobol Check Ditributions](https://github.com/openmainframeproject/cobol-check/tree/Developer/build/distributions).
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'jacoco'
}

def productVersion = '0.2.13'
def productVersion = '0.2.14'
def productName = 'cobol-check'
group = 'org.openmainframeproject'
description = 'Unit testing framework for Cobol'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static void main(String[] args) throws InterruptedException {

if (initializer.launchTestProgram()) {
int exitCode = testRunner.run(programName, initializer.isLastSourceProgram(programName));
if (exitCode >= 4)
if (exitCode > 4)
initializer.setExitStatusHalt();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Initializer {
private StatusController statusController;

public Initializer(String[] args) {
Log.info(Messages.get("INF000", "0.2.13"));
Log.info(Messages.get("INF000", "0.2.14"));
argumentController = new ArgumentHandlerController(args);
environmentController = new EnvironmentSetupController();
statusController = new StatusController();
Expand Down
2 changes: 2 additions & 0 deletions vs-code-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to the "cobol-unit-test" extension will be documented in this file. Versioning according to SemVer: https://semver.org/

## [0.4.8] 05.12.2024
- Now using COBOL Check version 0.2.14

## [0.4.7] 08.10.2024
- Now using COBOL Check version 0.2.13
Expand Down
2 changes: 1 addition & 1 deletion vs-code-extension/client/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { getContentFromFilesystem, MarkdownTestData, TestCase, testData, TestFil
let externalVsCodeInstallationDir = vscode.extensions.getExtension("openmainframeproject.cobol-check-extension").extensionPath;
let configPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/config.properties');
let defaultConfigPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/default.properties');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.13.jar');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.14.jar');
let currentPlatform = getOS();


Expand Down
2 changes: 1 addition & 1 deletion vs-code-extension/client/src/services/TestTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { handleCobolCheckOut } from '../Helpers/ExtensionHelper';
const textDecoder = new TextDecoder('utf-8');
let externalVsCodeInstallationDir = vscode.extensions.getExtension("openmainframeproject.cobol-check-extension").extensionPath;
let configPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/config.properties');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.13.jar');
let cobolCheckJarPath = appendPath(externalVsCodeInstallationDir, 'Cobol-check/bin/cobol-check-0.2.14.jar');



Expand Down
4 changes: 2 additions & 2 deletions vs-code-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Snippets"
],
"description": "Extension for running unit tests in Cobol",
"version": "0.4.7",
"version": "0.4.8",
"icon": "images/cobol-check-logo-small.png",
"repository": {
"type": "git",
Expand Down Expand Up @@ -40,7 +40,7 @@
}
],
"description": "Extension for running unit tests in Cobol",
"version": "0.4.7",
"version": "0.4.8",
"icon": "images/cobol-check-logo-small.png",
"repository": {
"type": "git",
Expand Down

0 comments on commit 51e9bc6

Please sign in to comment.