Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test.Utils.Paths: Fix the test data directory for Windows and Nix #1109

Merged
merged 1 commit into from
Dec 4, 2019

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Dec 3, 2019

Issue Number

#703

Overview

When running tests under either Windows or Nix, we want the test data directory to be relative to the current directory, rather than an absolute path.

Comments

Tests pass on Windows:

  • cardano-wallet-core-2019.11.18-test-unit.exe
  • cardano-wallet-jormungandr-2019.11.18-test-unit.exe
  • cardano-wallet-jormungandr-2019.11.18-test-integration.exe (running)
  • cardano-wallet-launcher-2019.11.18-test-unit.exe
  • cardano-wallet-cli-2019.11.18-test-unit.exe
  • bech32-2019.11.18-bech32-test.exe
  • text-class-2019.11.18-test-unit.exe

When running tests under either Windows or Nix, we want the test data
directory to be relative to the current directory, rather than an
absolute path.
@rvl rvl self-assigned this Dec 3, 2019
@rvl rvl mentioned this pull request Dec 3, 2019
@KtorZ
Copy link
Member

KtorZ commented Dec 3, 2019

@piotr-iohk are you able to execute the windows test on this one: https://hydra.iohk.io/build/1441738 ?

@rvl rvl marked this pull request as ready for review December 4, 2019 00:45
@piotr-iohk
Copy link
Contributor

@piotr-iohk are you able to execute the windows test on this one: https://hydra.iohk.io/build/1441738 ?

Yes, I don't see issues with the paths any longer, the tests are running. 🎉
(there are some integration tests that fail however)

@piotr-iohk piotr-iohk self-requested a review December 4, 2019 10:20
Copy link
Contributor

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems this fixes path issue, however there are still 21 integration tests failing, also it seems that jormungandr is not killed after the tests are finished. I think it'd be better to tackle this in separate task.

@rvl
Copy link
Contributor Author

rvl commented Dec 4, 2019

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 4, 2019
1109: Test.Utils.Paths: Fix the test data directory for Windows and Nix r=rvl a=rvl

# Issue Number

#703 

# Overview

When running tests under either Windows or Nix, we want the test data directory to be relative to the current directory, rather than an absolute path.

# Comments

Tests pass on Windows:

- [x] `cardano-wallet-core-2019.11.18-test-unit.exe`
- [x] `cardano-wallet-jormungandr-2019.11.18-test-unit.exe`
- [ ] `cardano-wallet-jormungandr-2019.11.18-test-integration.exe` (_running_)
- [x] `cardano-wallet-launcher-2019.11.18-test-unit.exe`
- [x] `cardano-wallet-cli-2019.11.18-test-unit.exe`
- [x] `bech32-2019.11.18-bech32-test.exe`
- [x] `text-class-2019.11.18-test-unit.exe`


Co-authored-by: Rodney Lorrimar <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 4, 2019

Timed out

@KtorZ
Copy link
Member

KtorZ commented Dec 4, 2019

bors r+

iohk-bors bot added a commit that referenced this pull request Dec 4, 2019
1109: Test.Utils.Paths: Fix the test data directory for Windows and Nix r=KtorZ a=rvl

# Issue Number

#703 

# Overview

When running tests under either Windows or Nix, we want the test data directory to be relative to the current directory, rather than an absolute path.

# Comments

Tests pass on Windows:

- [x] `cardano-wallet-core-2019.11.18-test-unit.exe`
- [x] `cardano-wallet-jormungandr-2019.11.18-test-unit.exe`
- [ ] `cardano-wallet-jormungandr-2019.11.18-test-integration.exe` (_running_)
- [x] `cardano-wallet-launcher-2019.11.18-test-unit.exe`
- [x] `cardano-wallet-cli-2019.11.18-test-unit.exe`
- [x] `bech32-2019.11.18-bech32-test.exe`
- [x] `text-class-2019.11.18-test-unit.exe`


Co-authored-by: Rodney Lorrimar <[email protected]>
@iohk-bors
Copy link
Contributor

iohk-bors bot commented Dec 4, 2019

Build succeeded

@iohk-bors iohk-bors bot merged commit 47c2103 into master Dec 4, 2019
@KtorZ KtorZ added this to the Usability & Compatibility milestone Dec 9, 2019
@KtorZ KtorZ deleted the rvl/fix-test-data-windows branch December 11, 2019 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants