The Current Working Directory is $SRC_ROOT/infra/appengine/findit, i.e. the directory that contains this file. Please cd
into it for the commands below to work.
Note:
From command line, run: make run
Then open http://localhost:8080 for the home page.
From command line, run:
make pytest
to run all tests;make pytest TEST_GLOB=<path to a sub dir>
to run tests in a sub directory;make pytest TEST_GLOB=<path to a sub dir>:*<test name>*
to run a given test.If a code path branch is not tested and no line number is shown in the command line output, you could check the code coverage report shown in the output.
From command line, run: git cl format
Deploy to the staging instance (and make it default): make deploy-findit-staging
Deploy to analysis.chromium.org (production): make deploy-findit-prod
Please use pantheon to make the new version default.
NOTE: Deployment to staging/prod requires some extra commands to pull in dependencies which were natively available in past, but now are not, due to many changes in infra repo. This is a tech debt, which hasn't been resolved, and probably will not be resolved any time sooner. The complete set of instructions to deploy can be found at go/deploy-findit