Skip to content

Issue/PR Create Interactive Test - #986

Closed
AliabbasMerchant wants to merge 1 commit into
cli:trunkfrom
AliabbasMerchant:interactive-creation-tests
Closed

AliabbasMerchant wants to merge 1 commit into
cli:trunkfrom
AliabbasMerchant:interactive-creation-tests

Conversation

@AliabbasMerchant

Copy link
Copy Markdown
Contributor

Fixes #956

@AliabbasMerchant
AliabbasMerchant marked this pull request as draft May 22, 2020 05:17
@AliabbasMerchant

Copy link
Copy Markdown
Contributor Author

@vilmibm I don't think I have the permission to add you as a reviewer

@AliabbasMerchant

Copy link
Copy Markdown
Contributor Author

I will add the PR create tests once this is approved, and blank template tests once #950 is merged

@vilmibm
vilmibm self-requested a review May 22, 2020 15:43
Comment thread command/issue_test.go
`))

var templateFiles []string
if rootDir, err := git.ToplevelDir(); err == nil {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

My hope with template testing is that we're not reading from the filesystem. This can fail or change behavior as we change the repository itself.

I'd rather have a function wrapper around finding templates on the filesystem that can be overriden in tests to provide predictable results.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh. Okay. I was actually thinking that since the code is intended to read from the filesystem and we are also reading from the filesystem in the tests, it should not be a problem. Since changes to the file system would affect the code and the tests in the same way, so they would always be in sync

@AliabbasMerchant AliabbasMerchant changed the title Issue Create Interactive Test Issue/PR Create Interactive Test May 22, 2020
@mislav
mislav changed the base branch from master to trunk May 27, 2020 11:41
@AliabbasMerchant

Copy link
Copy Markdown
Contributor Author

Replaced by #1311

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.

make template selection test-able

2 participants