Skip to content

Commit

Permalink
refactor: Changed pom property name.
Browse files Browse the repository at this point in the history
Property "test.framework.types" renamed to "test.framework.types.version".

Signed-off-by: Plamen Boychev <[email protected]>
  • Loading branch information
pboychev-bcom committed Jan 15, 2025
1 parent ccab0fd commit 4bf4af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public final void execute() throws MojoExecutionException, MojoFailureException
Properties projectProperties = project.getProperties();
String unitTestFrameworkPackage = projectProperties.getProperty("test.framework.package");
String unitTestFrameworkVersion = projectProperties.getProperty("test.framework.version");
String unitTestFrameworkTypes = projectProperties.getProperty("test.framework.types");
String unitTestFrameworkTypes = projectProperties.getProperty("test.framework.types.version");
boolean useDefaultUnitTestFramework = unitTestFrameworkPackage == null
|| unitTestFrameworkPackage.equals(new String("jasmine")) && unitTestFrameworkVersion == null;

Expand Down
4 changes: 2 additions & 2 deletions typescript/vrotest/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Supported properties:
- `test.framework.version` - the version of the framework npm package to use, should be one of the versions available for the specified framework npm package. If not provided will use:
- `^4.0.2` for `jasmine` for backward comaptibility.
- `latest` for `jest`.
- `test.framework.types` - optional value, will be used to install a specific version of the type definitions for the unit test framework. This is related to the [DefinitelyTyped project](https://definitelytyped.org/) and the versions need to be aligned with the available ones originating from it. If not value is provided:
- `test.framework.types.version` - optional value, will be used to install a specific version of the type definitions for the unit test framework. This is related to the [DefinitelyTyped project](https://definitelytyped.org/) and the versions need to be aligned with the available ones originating from it. If not value is provided:
- And the Jasmine framework is used with the default framework version, the solution will install the default type definitions as well - ensures backward compatibility.
- If the latest version of any framework is used the solution will install the latest available type definitions for it.
- If a specific version of any framework is used the solution will attempt to install the `major.minor.X` version of the type definitions. In case there is no such version, the user needs to specify which version should be used via the `test.framework.types` property.
- If a specific version of any framework is used the solution will attempt to install the `major.minor.X` version of the type definitions. In case there is no such version, the user needs to specify which version should be used via the `test.framework.types.version` property.
- `test.framework.runner` - enables using a specific runner, currently only used for `jest`, optional, supported values: `swc`, if omitted will use the default runner.
- `test.framework.jasmine.reporters.version` - version of the Jasmine reporters package to use when using the `jasmine` option for the framework selection, optional, defaults to `^2.5.2` for backward compatibility if omitted.
- `test.ansicolors.version` - The `ansi-colors` npm package is used in the Jasmine reporters configured for the tests, optional, defaults to `^4.1.1` for backward compatibility if omitted.
Expand Down

0 comments on commit 4bf4af4

Please sign in to comment.