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: add test cases for the export command with attachments #602

Merged
merged 4 commits into from
Dec 5, 2023

Conversation

hung-cybo
Copy link
Contributor

Why

Adding export e2e test cases.

What

  • adding test cases to verify --attachment-dir option
    • existent directory
    • non-existent directory
    • files in different records
    • files in a record
    • text file

How to test

pnpm build
pnpm test:e2e

Checklist

  • Read CONTRIBUTING.md
  • Updated documentation if it is required.
  • Added/updated tests if it is required. (or tested manually)
  • Passed pnpm lint and pnpm test on the root directory.

@hung-cybo hung-cybo requested review from a team and tasshi-me and removed request for a team December 1, 2023 09:54
Then I should get the exit code is zero
And The output message should match with the data below:
| Record_number | Text | Attachment |
| $RECORD_NUMBERS[0] | Alice | Attachment-$RECORD_NUMBERS[0][\/\\\\]file1.txt |
Copy link
Contributor

Choose a reason for hiding this comment

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

@hung-cybo
Do we need a comment to explain about the regular expression for slash and backslash?

@tuanphamcybozu tuanphamcybozu merged commit 8e5ae81 into main Dec 5, 2023
10 checks passed
@tuanphamcybozu tuanphamcybozu deleted the test/CliKintoneTest-90-to-94 branch December 5, 2023 07: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.

2 participants