adobe / adobe/aio-lib-template-validation

tv reports "undefined" as number of total checks

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

### Expected Behaviour

`tv` tool correctly reports total number of checks performed

### Actual Behaviour

`tv` tool reports `undefined` as total number of checks performed

### Reproduce Scenario (including but not limited to)

#### Steps to Reproduce

1. Install `tv` tool
```
npm i -g @adobe/aio-lib-template-validation
```
2. Run the tool in the root folder of the template source code (I used https://github.com/adobe/aem-assets-details-ext-tpl)
```
tv run-checks .
2 of undefined tests passed.
Tests:
1) Validation of install.yaml file
2) Validation of packages.json file
```

#### Platform and Version

Mac OS 14.3 (23D56)
```
node --version
v20.9.0
npm --version
10.1.0
```

#### Sample Code that illustrates the problem

n/a

#### Logs taken while reproducing problem

see above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with `tv run-checks .` in the template repository and trace how the CLI formats the total check count. Verify that the reported total is numeric and matches the checks performed, such as `2 of 2 tests passed`, using the supplied reproduction command.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.