Skip to content

Commit

Permalink
test: run serially
Browse files Browse the repository at this point in the history
  • Loading branch information
baszalmstra committed Nov 20, 2023
1 parent 3099b07 commit 48c3147
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ rattler_digest = "0.12.0"
serde_json = "1.0.107"
tokio = { version = "1.32.0", features = ["rt"] }
toml = "0.8.1"
serial_test = "2.0.0"

[patch.crates-io]
#rattler = { git = "https://github.com/mamba-org/rattler", branch = "main" }
Expand Down
5 changes: 5 additions & 0 deletions tests/install_tests.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
mod common;

Check warning on line 1 in tests/install_tests.rs

View workflow job for this annotation

GitHub Actions / Format and Lint

Diff in /home/runner/work/pixi/pixi/tests/install_tests.rs

use serial_test::serial;
use crate::common::builders::string_from_iter;
use crate::common::package_database::{Package, PackageDatabase};
use common::{LockFileExt, PixiControl};
Expand All @@ -9,6 +10,7 @@ use tempfile::TempDir;
/// Should add a python version to the environment and lock file that matches the specified version
/// and run it
#[tokio::test]
#[serial]
#[cfg_attr(not(feature = "slow_integration_tests"), ignore)]
async fn install_run_python() {
let pixi = PixiControl::new().unwrap();
Expand Down Expand Up @@ -43,6 +45,7 @@ async fn install_run_python() {
/// version `2` is available. This is because `bar` was previously locked to version `1` and it is
/// still a valid solution to keep using version `1` of bar.
#[tokio::test]
#[serial]
async fn test_incremental_lock_file() {
let mut package_database = PackageDatabase::default();

Expand Down Expand Up @@ -106,6 +109,7 @@ async fn test_incremental_lock_file() {

/// Test the `pixi install --locked` functionality.
#[tokio::test]
#[serial]
#[cfg_attr(not(feature = "slow_integration_tests"), ignore)]
async fn install_locked() {
let pixi = PixiControl::new().unwrap();
Expand Down Expand Up @@ -136,6 +140,7 @@ async fn install_locked() {

/// Test `pixi install/run --frozen` functionality
#[tokio::test]
#[serial]
#[cfg_attr(not(feature = "slow_integration_tests"), ignore)]
async fn install_frozen() {
let pixi = PixiControl::new().unwrap();
Expand Down

0 comments on commit 48c3147

Please sign in to comment.