autopilot-users team mailing list archive
-
autopilot-users team
-
Mailing list archive
-
Message #00020
Re: Running and listing tests from autopilot source code
Hi John,
Awesome to hear that you're interested in contributing to Autopilot!
This is a good question, I've since filed a bug against the docs [1] and
proposed a MP against that bug [2].
To save you a link-click the answer is:
You should run autopilot in the source codes root directory (i.e. the
directory containing autopilot/, bin/, docs/ etc.)
An example from branching to listing:
<example>
$ bzr branch lp:autopilot ~/src/autopilot/trunk
$ cd ~/src/autopilot/trunk
$ ls
autopilot autopilot.1 bin COPYING debian docs lttng_module
MANIFEST.in setup.py
$ autopilot list autopilot
Loading tests from: /home/example/src/autopilot/trunk
autopilot.tests.functional.test_ap_apps.ApplicationLaunchTests.test_creating_app_for_non_running_app_fails
autopilot.tests.functional.test_ap_apps.ApplicationLaunchTests.test_creating_app_proxy_for_running_app_not_on_dbus_fails
.. snip ..
</example>
Let us know how you get on.
Regards,
Chris
[1] https://bugs.launchpad.net/autopilot/+bug/1205987
[2]
https://code.launchpad.net/~veebers/autopilot/fix_1205987_contrib_faq_ambig/+merge/177313
On Mon, Jul 29, 2013 at 1:37 PM, John Kim <johnkim.ubuntu@xxxxxxxxx> wrote:
> Hello all,
>
> My name is John, and I'm just about to get started with autopilot. After
> spending several days learning Python, I think I'm ready to get to work.
>
> I would like to start contributing to autopilot development by doing this
> task [1]. This report resulted from an error that occurred from running a
> music_app testcase recently. I just bzr-ed the source, and autopilot
> currently sits at my home directory.
>
> Now after reading through the question "How do I list the tests for the
> autopilot source code?" from autopilot FAQ [2], it says running autopilot
> from the source directory is suffice.
>
> *Then, which of the following would actually run autopilot from this
> bzr-ed source, NOT the one already installed in my system? * There are
> two autopilot directories: parent and child.
>
> - Parent) john@kotux:~/autopilot$ autopilot list autopilot.tests
> - Child) john@kotux:~/autopilot/autopilot$ autopilot list
> autopilot.tests
> - neither...
> - If so, what other method would work?
>
> I haven't tried them out.
> By the way, I think that question and the one below should s/for/from
>
> Thanks for the help.
>
> [1] https://bugs.launchpad.net/autopilot/+bug/1204771
> [2] unity.ubuntu.com/autopilot/faq/contribute.html#id7
>
> --
> John Kim
> Ubuntu QA & Doc Contributorjohnkim.ubuntu@xxxxxxxxx
>
>
> --
> Mailing list: https://launchpad.net/~autopilot-users
> Post to : autopilot-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~autopilot-users
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References