question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breeze: Running integration tests in Breeze

See original GitHub issue

We should be able to run integration tests with Breeze - this is extension of test unit tests command that should allow to enable --integrations (same as in Shell) and run the tests with only the integration tests selected.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
potiukcommented, Apr 28, 2022

We want to run pytest in our container. Too run docker exec ...pytest, the container needs to be running. Do we actually want breeze tests to spin up the container?

Yes. This is how it was done before and this is also needed to run the tests in CI (and how they are run currently). Basically in CI we run multiple tests in parallel - and what we do we spin multiple containers for that - each “group” of tests is run in a separate container with separate databases and separate integrations if needed. So for that we need to have a test command that

  1. starts a docker-compose with container and all necessary containers. Depending on the test type different containers are starting (for examplef when you run integration, all the integration containers are started).
  2. run the tests in the container (this is done by running the same thing as entering shell but setting a few env variables - RUN_TESTS, TEST_TYPE I thiink

At later stage (when we reuse it in CI) - we should be able to run several docker-compose in parallel (this is easy - by just setting different docker-compose name)

All that done in ./breeze-legacy and scripts that run test . For now just focus on what breeze-legacy does.

Spinning containers is a very cheap operation in fact. so this is not e problem to run them for tests.

1reaction
joppevoscommented, Apr 21, 2022

@potiuk Great. I think the general test command wil be covered by this issue not? This will then depend on the implementation of that issue. I can make a start on the breeze test command and see later how we bring it together @Bowrna

Read more comments on GitHub >

github_iconTop Results From Across the Web

Testing - Breeze | JS
Integration tests are appropriate because we are exploring how the parts of a Breeze app fit together. Module setup and teardown. QUnit can...
Read more >
airflow/BREEZE.rst at main · apache/airflow - GitHub
You can run tests with breeze . There are various tests type and breeze allows to run different test types easily. You can...
Read more >
Make Integration Testing a Breeze with API Mocking - Codit
In this demo we will run our tests from our favourite testing framework. During setup we will configure our responses in a storage...
Read more >
Development and Test Environment for Apache Airflow
Airflow Breeze - Development and Test Environment for Apache Airflow. 5.5K views 2 years ago. Apache Airflow. Apache Airflow.
Read more >
Testing Laravel Breeze Authentication - DEV Community ‍ ‍
My plan for this post is to make some feature/unit tests to test the login and register functionality as well as improving my...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found