question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HOME test failures on Windows

See original GitHub issue

I just made a fresh fork of java-dotenv and after cloning my fork and running mvn test i receive a lot of test failures. The error is always the same.

[ERROR] Failures:
[ERROR]   DotEnvDslTest.dotenvIgnoreMalformed:34 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvDslTest.dotenvIgnoreMissing:91 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvDslTest.resourceCurrent:72 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvDslTest.resourceFilename:60 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvDslTest.resourceRelative:47 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvTest.dotenvFilename:57 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvTest.dotenvIgnoreMalformed:38 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvTest.dotenvIgnoreMissing:101 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvTest.resourceCurrent:82 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[ERROR]   DotEnvTest.resourceRelative:70 expected:<C:\Users\adm[]> but was:<C:\Users\adm[\]>
[INFO]
[ERROR] Tests run: 14, Failures: 10, Errors: 0, Skipped: 0

In my real world project I fixed ~this~ [issue #11] by specifying the directory as ".": Dotenv.configure().directory(".").ignoreIfMissing().load();

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Playacemcommented, Nov 13, 2018

I just tested the changes and the test errors are now resolved.

0reactions
cdimasciocommented, Nov 13, 2018

@Playacem Thank you for verifying. i’ll merge this to master

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Test Your PC for Failing Hardware: Tips and Tools
Here are the best computer hardware and PC diagnostic tests to scan your system and spot failing hardware before it's too late.
Read more >
HP PCs - Testing for hardware failures in Windows 10
HP provides diagnostic software for testing hardware components on your computer and confirm hardware failures. Start with the Fast Test to quickly identify ......
Read more >
How could new windows fail a water test?
A client recently sent me an email asking how brand new windows could fail a water test. That's a good question. The answer...
Read more >
Troubleshoot Start menu errors - Windows Client
Learn how to troubleshoot common Start menu errors in Windows 10. For example, learn to troubleshoot errors related to deployment, crashes, ...
Read more >
Diagnostics, feedback, and privacy in Windows
Learn how Microsoft collects and uses different kinds of diagnostic information to help fix problems quickly and improve your Windows experience, and how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found