Skip to content
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

test: run serially #477

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
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 @@ -73,6 +73,7 @@ signal-hook = "0.3.17"
[dev-dependencies]
rattler_digest = "0.12.0"
serde_json = "1.0.107"
serial_test = "2.0.0"
tokio = { version = "1.32.0", features = ["rt"] }
toml = "0.8.1"

Expand Down
5 changes: 5 additions & 0 deletions tests/install_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ use crate::common::builders::string_from_iter;
use crate::common::package_database::{Package, PackageDatabase};
use common::{LockFileExt, PixiControl};
use pixi::cli::run;
use serial_test::serial;
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
Loading