Skip to content

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

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 3 commits into from
Jun 7, 2018

Conversation

Natalia-Hristova
Copy link
Contributor

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

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.

@@ -36,10 +36,17 @@ def test_101_create_project_log_trace(self):

def test_102_platform_add_log_trace(self):
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
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
Contributor

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

@Natalia-Hristova
Copy link
Contributor 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.

Copy link
Contributor

@dtopuzov dtopuzov left a comment

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