Skip to content

Add FirstLaunchActivityTest.kt to kobo-string-replace.js #15

Description

@tiritea

Unit test FirstLaunchActivityTest.kt fails on testcase whenFormDoesNotExist_showsFatalError because the assert is still checking for original "...please email support@getodk.org...", instead of the new "support@kobotoolbox.org".

Need to add this testcase file - or preferably all unit tests - to kobo-string-replace.js so that the test assert matches the corresponding changes applied to the source code; specifically, change:

replace({
    regex: 'support@getodk.org',
    replacement: "support@kobotoolbox.org",
    paths: ['collect_app/src/main/java/org/odk/collect/android/tasks'],
    recursive: true,
    silent: true
});

to

replace({
    regex: 'support@getodk.org',
    replacement: "support@kobotoolbox.org",
    paths: ['collect_app/src/main/java/org/odk/collect/android/tasks', 'collect_app/src/test/java/org/odk/collect/android/activities'],
    recursive: true,
    silent: true
});

This should pickup the associated testcase file java/org/odk/collect/android/activities/FormFillingActivityTest.kt and make the relevant substitution, as well as any future testcases that GetODK might add that have the same GetODK email address.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions