Skip to content

Commit

Permalink
Run tests in src dirs in ci. (#7524)
Browse files Browse the repository at this point in the history
This will allow us to start moving tests from the tests folder to the src folder. See #7489.
  • Loading branch information
benjyw authored Apr 10, 2019
1 parent d0c670f commit 698f9cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions build-support/bin/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ if [[ "${run_internal_backends:-false}" == "true" ]]; then
start_travis_section "BackendTests" "Running internal backend python tests"
(
./pants.pex test.pytest \
pants-plugins/tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
pants-plugins/src/python:: pants-plugins/tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
) || die "Internal backend python test failure"
end_travis_section
fi
Expand All @@ -215,7 +215,7 @@ if [[ "${run_python:-false}" == "true" ]]; then
(
./pants.pex --tag='-integration' test.pytest --chroot \
--test-pytest-test-shard=${python_unit_shard} \
tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
src/python:: tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
) || die "Core python test failure"
end_travis_section
fi
Expand Down Expand Up @@ -275,7 +275,7 @@ if [[ "${test_platform_specific_behavior:-false}" == 'true' ]]; then
"Running platform-specific testing on platform: $(uname)"
(
./pants.pex --tag='+platform_specific_behavior' test \
tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
src/python/:: tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
) || die "Pants platform-specific test failure"
end_travis_section
fi
Expand All @@ -289,7 +289,7 @@ if [[ "${run_integration:-false}" == "true" ]]; then
(
./pants.pex --tag='+integration' test.pytest \
--test-pytest-test-shard=${python_intg_shard} \
tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
src/python:: tests/python:: -- ${PYTEST_PASSTHRU_ARGS}
) || die "Pants Integration test failure"
end_travis_section
fi
Expand Down
2 changes: 1 addition & 1 deletion build-support/bin/unit-test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
set -e
./pants test tests/python/pants_test:: --tag=-integration
./pants test src/python/pants:: tests/python/pants_test:: --tag=-integration

0 comments on commit 698f9cb

Please sign in to comment.