Running a test with `--outputdir` returns an `ERROR running force:apex:test:run: Invalid time value`
See original GitHub issueSummary
Running a test with --outputdir
returns an ERROR running force:apex:test:run: Invalid time value
Steps To Reproduce:
sfdx force:apex:test:run --codecoverage --resultformat json
runs normally.
sfdx force:apex:test:run --codecoverage --resultformat json --outputdir test-output
or sfdx force:apex:test:run --codecoverage --resultformat json --outputdir .
or sfdx force:apex:test:run --codecoverage --resultformat json --outputdir ./test-output
returns an ERROR running force:apex:test:run: Invalid time value
Expected result
Test outcome files should be generated
Actual result
ERROR running force:apex:test:run: Invalid time value
System Information
{
"cliVersion": "sfdx-cli/7.122.1",
"architecture": "darwin-x64",
"nodeVersion": "node-v14.17.0",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.2.3 (core)",
"@oclif/plugin-not-found 1.2.4 (core)",
"@oclif/plugin-plugins 1.10.1 (core)",
"@oclif/plugin-update 1.5.0 (core)",
"@oclif/plugin-warn-if-update-available 1.7.0 (core)",
"@oclif/plugin-which 1.0.3 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"alias 1.1.21 (core)",
"apex 0.3.0 (core)",
"auth 1.7.2 (core)",
"config 1.2.40 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.6.2 (core)",
"generator 1.2.1 (core)",
"limits 1.2.2 (core)",
"org 1.8.1 (core)",
"salesforce-alm 52.6.0 (core)",
"schema 1.0.8 (core)",
"sfdx-cli 7.122.1 (core)",
"source 1.2.2 (core)",
"telemetry 1.2.6 (core)",
"templates 52.4.0 (core)",
"trust 1.0.10 (core)",
"user 1.5.0 (core)"
],
"osVersion": "Darwin 20.3.0"
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
SFDX test run failing when output dir provided
test -output , I get an error:ERROR running force:apex:test:run: Invalid time value . Any clue on what could be going on?
Read more >'Invalid time value' from 'sfdx | Salesforce Trailblazer Community
I'm trying to establish a nightly test run with the command sfdx force:apex:test:run -l RunLocalTests -d /c/sfdx/apexTestResults -u preprod ...
Read more >"sfdx force:apex:test:run" and "sfdx force:apex:test:report ...
Summary Summary: When running, "sfdx force:apex:test:run", it ends after 180 minutes, even though -w option is set to longer wait time (i.e. 1440...
Read more >RangeError: Invalid time value - javascript - Stack Overflow
This exception occurs when the Date object contains an invalid date. new Date('undefined').toISOString(). In this example the Date object ...
Read more >RangeError: invalid date - JavaScript - MDN Web Docs
The JavaScript exception "invalid date" occurs when a string leading to an invalid date has been provided to Date or Date.parse().
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@WillieRuemmele - no need to move this issue.
@ipavlic - Don’t worry about which repo we work the issue from. It just depends on our internal organization, which I understand can be a bit confusing. We transfer between them so you don’t have to worry about where you create one. We will make sure it gets to the right team! (and this one is with the right team)
This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.