Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.1]

### Changed

- Updated shared library (https://github.com/Dinomite-Studios/unity-azure-pipelines-tasks-lib) dependency

## [1.1.0]

### Fixed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dinomite-studios/unity-get-project-version-task",
"version": "1.1.0",
"version": "1.1.1",
"description": "Azure Pipelines task to get the project version of a Unity project.",
"main": "unity-get-project-version.js",
"scripts": {
Expand All @@ -19,7 +19,7 @@
"dependencies": {
"@types/node": "^22.9.1",
"@types/q": "^1.5.8",
"@dinomite-studios/unity-azure-pipelines-tasks-lib": "^1.0.9",
"@dinomite-studios/unity-azure-pipelines-tasks-lib": "^1.0.11",
"azure-pipelines-task-lib": "^4.17.3"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"version": {
"Major": 1,
"Minor": 1,
"Patch": 0
"Patch": 1
},
"releaseNotes": "[Full Changelog](https://github.com/Dinomite-Studios/unity-azure-pipelines-tasks/blob/master/Tasks/UnityGetProjectVersion/UnityGetProjectVersionV1/CHANGELOG.md)",
"minimumAgentVersion": "2.144.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ import assert from 'assert';
import * as mocktest from 'azure-pipelines-task-lib/mock-test';
import * as path from 'path';

describe("Unity Get Project Version", () => {
describe("Unity Get Project Version V1 tests", () => {
it("Error determining the project version from file", (done) => {
let testPath = path.join(__dirname, 'errorDeterminingTheProjectVersionFromFile.js');
const testPath = path.join(__dirname, 'errorDeterminingTheProjectVersionFromFile.js');
const runner: mocktest.MockTestRunner = new mocktest.MockTestRunner();

let runner: mocktest.MockTestRunner = new mocktest.MockTestRunner(testPath);

runner.runAsync()
runner.LoadAsync(testPath)
.then(() => {
assert.strictEqual(runner.failed, true);
assert.strictEqual(runner.invokedToolCount, 0);
assert(runner.stdOutContained('loc_mock_failGetUnityEditorVersion | Unknown project version format encountered'));

done();
runner.runAsync()
.then(() => {
assert.strictEqual(runner.failed, true);
assert.strictEqual(runner.invokedToolCount, 0);
assert(runner.stdOutContained('loc_mock_failGetUnityEditorVersion | Unknown project version format encountered'));

done();
});
});
})
});

it("Success (alpha) determining the project version from file", (done) => {
let testPath = path.join(__dirname, 'successAlphaDeterminingTheProjectVersionFromFile.js');
Expand All @@ -33,7 +35,7 @@ describe("Unity Get Project Version", () => {

done();
});
})
});

it("Success (beta) determining the project version from file", (done) => {
let testPath = path.join(__dirname, 'successBetaDeterminingTheProjectVersionFromFile.js');
Expand All @@ -50,7 +52,7 @@ describe("Unity Get Project Version", () => {

done();
});
})
});

it("Success (stable) determining the project version from file", (done) => {
let testPath = path.join(__dirname, 'successStableDeterminingTheProjectVersionFromFile.js');
Expand All @@ -67,5 +69,5 @@ describe("Unity Get Project Version", () => {

done();
});
})
})
});
});
Loading