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

CLI Test Suite #1747

Open
1 of 7 tasks
daemon1024 opened this issue Oct 30, 2020 · 14 comments
Open
1 of 7 tasks

CLI Test Suite #1747

daemon1024 opened this issue Oct 30, 2020 · 14 comments
Labels

Comments

@daemon1024
Copy link
Member

daemon1024 commented Oct 30, 2020

Follow up meta issue for #1694 and #1718

Aim of this suite

Write tests for various components of the CLI aspect of Image Sequencer.

Where to add the tests

test/cli/*

How to run these tests

npm run test-cli

List of needed tests

Mention more in the comments if I missed out on something

How to implement

https://github.com/publiclab/image-sequencer/blob/main/test/cli/saveSequence.js has an initial implementation.

@publiclab/is-maintainers @publiclab/is-cli-maintainers @publiclab/is-tests-maintainers

@jywarren
Copy link
Member

jywarren commented Oct 31, 2020 via email

@harshkhandeparkar
Copy link
Member

Should we add something to CONTRIBUTING.md too?

@jywarren
Copy link
Member

jywarren commented Nov 2, 2020 via email

@daemon1024
Copy link
Member Author

Yeah this is something I felt too. The test aren't documented well in general so documenting the CLI tests along the way will be start :)

@daemon1024
Copy link
Member Author

How should I proceed btw? 😅 Open individual issues for each test scenario? Or just directly PRs.

Also should I plan them out in a project or linking them to this issue is enough?

@harshkhandeparkar
Copy link
Member

harshkhandeparkar commented Nov 2, 2020

Do whatever is convenient :) But I suppose linking them here is a minimum(to keep track of the big picture).

@harshkhandeparkar
Copy link
Member

@daemon1024 Is it possible to create a test template so that people don't have to spawn the commander instance each time? eg: /tests/core/templates/

@daemon1024
Copy link
Member Author

That makes sense. Let me try to implement that.

@daemon1024 daemon1024 mentioned this issue Jan 2, 2021
5 tasks
@daemon1024
Copy link
Member Author

@harshkhandeparkar What do you think about #1785. This eliminates the need to spawn commander instance each time.

P.s. Sorry I got busy with university and couldn't work on it, Now that I have holidays I hope to make some progress on the test-suite.

@daemon1024
Copy link
Member Author

We should probably merge #1786 before proceeding with the suite.

@jywarren
Copy link
Member

Great, i left some comments and analysis there although didn't get too far. thanks!

@daemon1024
Copy link
Member Author

Since #1820 is now merged. I guess we can proceed with is.

@daemon1024
Copy link
Member Author

Updated how to implement with the refactored test method.

https://github.com/publiclab/image-sequencer/blob/main/test/cli/saveSequence.js has an initial implementation.

@daemon1024
Copy link
Member Author

I will begin working on it and try to introduce a few fto's as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants