Skip to content

Add options to test command #35

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

Merged
merged 11 commits into from
Oct 3, 2019
Merged

Add options to test command #35

merged 11 commits into from
Oct 3, 2019

Conversation

engineering-this
Copy link
Contributor

@engineering-this engineering-this commented Jun 11, 2019

I'm using it for #6 however it would be helpful for any other changes, so I've extracted it here.

What's new in this PR:

  • Dependency minimalist, it is used in ckeditor5-vue and ckeditor4-vue.
  • Test script, which calls ng test by spawning new process. Command line options are smuggled to child process env.
  • options.url (alias u) which is an url to be included by Karma. It's purpose to quickly pass different src of CKEditor.
     npm run test -- -u http://localhost:5000/ckeditor.js
    
  • options.watch (alias w) which tells karma to watch for changes in files and rerun tests whenever changes occur. This option is originally supported by Angular CLI however with new way of running tests it has to be reimplemented.
     npm run test -- -w
    

Closes #34.
Closes #8.

@f1ames
Copy link
Contributor

f1ames commented Oct 3, 2019

Rebased onto latest master.

@f1ames f1ames self-requested a review October 3, 2019 07:48
@f1ames f1ames self-assigned this Oct 3, 2019
Copy link
Contributor

@f1ames f1ames left a comment

Choose a reason for hiding this comment

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

LGTM 👍Done only some minor adjustments.

@f1ames f1ames merged commit 81fef37 into master Oct 3, 2019
@CKEditorBot CKEditorBot deleted the t/34 branch October 3, 2019 07:49
@f1ames f1ames mentioned this pull request Oct 3, 2019
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.

Allow adding command line options to test command Replace CDN with submodule
2 participants