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

Allow setting path to binary under test #3410

Merged
merged 1 commit into from
Oct 8, 2019

Conversation

travisperson
Copy link
Contributor

To enable running the network deployment tests during network setup we can build the tests as an executable binary using the -c flag of go test. Currently all of our tests are forced into using a binary located at the project root. This flags allows overriding the binary that will be used for tests which fork go-filecoin.

@codecov-io
Copy link

codecov-io commented Sep 11, 2019

Codecov Report

Merging #3410 into master will decrease coverage by <1%.
The diff coverage is 0%.

@@          Coverage Diff           @@
##           master   #3410   +/-   ##
======================================
- Coverage      46%     46%   -1%     
======================================
  Files         241     241           
  Lines       15602   15604    +2     
======================================
- Hits         7262    7196   -66     
- Misses       7294    7369   +75     
+ Partials     1046    1039    -7

return "", err
}

bin = filepath.Join(gopath, "/src/github.com/filecoin-project/go-filecoin/go-filecoin")
Copy link
Member

Choose a reason for hiding this comment

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

I think we should delete the fallback to GOPATH, but instead expect "./go-filecoin". Yes, this requires the right CWD, but the binary-path option supports other cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See: #3409

@travisperson travisperson force-pushed the feat/allow-setting-binary-under-test branch from 44d1f9d to 69bdfa9 Compare October 8, 2019 18:06
@travisperson travisperson force-pushed the feat/allow-setting-binary-under-test branch from 69bdfa9 to 1824b75 Compare October 8, 2019 18:21
@travisperson travisperson merged commit f1d0cc1 into master Oct 8, 2019
@zl03jsj zl03jsj deleted the feat/allow-setting-binary-under-test branch July 14, 2022 09:48
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.

4 participants