Skip to content

fix: test for Google Analytics message - cli#3536 - #114

Merged
Natalia-Hristova merged 3 commits into
masterfrom
Natalia-Hristova/google-analytics-message
Jun 7, 2018
Merged

Natalia-Hristova merged 3 commits into
masterfrom
Natalia-Hristova/google-analytics-message

Conversation

@Natalia-Hristova

@Natalia-Hristova Natalia-Hristova commented Apr 23, 2018 •

Copy link
Copy Markdown

Test for issue: NativeScript/nativescript-cli#3536

Note: PR should be merged after the fix is in master a.k.a naticescript-cli release is merged into master.

Comment thread tests/build/common/logtrace_tests.py Outdated
Tns.create_app(self.app_name, update_modules=False)

# Disable tracking in Google Analytics https://github.com/NativeScript/nativescript-cli/issues/3536
Tns.run_tns_command("usage-reporting disable")

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.

I think we disable usage reporting before all tests.
Not sure what will happen if it is disabled and we disable it again (it might be ok, just need to check it).

Here we do some enable/disable:
https://github.com/NativeScript/nativescript-cli-tests/blob/master/tests/build/common/usage_reporting_tests.py

May be we can move/extend tests there (all tests in UsageReportingTests class are specially for this feature).

@dtopuzov

Copy link
Copy Markdown
Contributor

May be we can also add test for this specific case:
NativeScript/nativescript-cli#3595

@Natalia-Hristova

Copy link
Copy Markdown
Author

Move the test for issue nativescript-cli#3536 in UsageReportingTests as you suggest. That's definitely the right place. Thanks!
Extend test so to cover nativescript-cli#3595 as well.

@dtopuzov dtopuzov left a comment

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.

Well done.

@Natalia-Hristova
Natalia-Hristova merged commit 8895f7c into master Jun 7, 2018
@Natalia-Hristova
Natalia-Hristova deleted the Natalia-Hristova/google-analytics-message branch June 7, 2018 08:36
Natalia-Hristova pushed a commit that referenced this pull request Jun 19, 2018
* fix: test for Google Analytics message - cli#3536

* fix: Move tests.

* add test for local paths in Analytics
Natalia-Hristova pushed a commit that referenced this pull request Jun 28, 2018
* fix: test for Google Analytics message - cli#3536

* fix: Move tests.

* add test for local paths in Analytics
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