Skip to content

[EDITOR-527] E2E testing infrastructure #591

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 13 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Run e2e tests only with GUI version on macos (Github runners are basi…
…cally mac mini with GUI support)"
  • Loading branch information
umbynos committed Jan 22, 2021
commit fcf6d82ee901865be667746ec4cfd13717189391
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ jobs:
with:
python-version: '3.9'
architecture: 'x64'
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'macos-10.15'

- name: Run e2e tests
run: |
pip install poetry
task test-e2e
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'macos-10.15'

# this will create `public/` dir with compressed full bin (<version>/<os>-<arch>.gz) and a json file
- name: Create autoupdate files
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ jobs:
with:
python-version: '3.9'
architecture: 'x64'
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'macos-10.15'

- name: Run e2e tests
run: |
pip install poetry
task test-e2e
if: matrix.os == 'ubuntu-18.04'
if: matrix.os == 'macos-10.15'

# config.ini is required by the executable when it's run
- name: Upload artifacts
Expand Down
4 changes: 2 additions & 2 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@pytest.fixture(scope="function")
def agent(pytestconfig):

agent_cli = str(Path(pytestconfig.rootdir) / "arduino-create-agent_cli")
agent_cli = str(Path(pytestconfig.rootdir) / "arduino-create-agent")
env = {
# "ARDUINO_DATA_DIR": data_dir,
# "ARDUINO_DOWNLOADS_DIR": downloads_dir,
Expand All @@ -24,7 +24,7 @@ def agent(pytestconfig):

cd_command = "cd"
with run_context.prefix(f'{cd_command} ..'):
runner.run(command=agent_cli, echo=True, hide=True, warn=True, env=env, asynchronous=True)
runner.run(agent_cli, echo=True, hide=True, warn=True, env=env, asynchronous=True)

# we give some time to the agent to start and listen to
# incoming requests
Expand Down