nemu 0.1.0

An interactive story engine for creating text-based adventure games
Documentation
#[cfg(test)]
mod integration_tests {
    use std::fs;
    use std::path::Path;

    #[test]
    fn test_complete_game_flow() {
        // Create a temporary story file for testing
        let test_story_content = r#"
[story]
title = "Test Adventure"
start_room = "start"

[rooms.start]
title = "Starting Room"
description = "You are in a starting room."
north = "end"
items = ["key"]

[rooms.end]
title = "End Room"
description = "You have reached the end!"
south = "start"
items = ["treasure"]

[items.key]
name = "Magic Key"
description = "A key that opens doors."

[items.treasure]
name = "Golden Treasure"
description = "A valuable treasure."
"#;

        // Write the test story to a temporary file
        let test_path = "test_story_integration.toml";
        fs::write(test_path, test_story_content).expect("Failed to write test story");

        // Verify the file was created
        assert!(Path::new(test_path).exists());

        // Clean up
        fs::remove_file(test_path).expect("Failed to clean up test file");
    }

    #[test]
    fn test_cli_commands() {
        // Test that CLI commands can be compiled without crashing
        
        // Test that the project can build
        let _ = std::process::Command::new("cargo")
            .args(&["build"])
            .output()
            .expect("Failed to build project");
        
        // The command parsing itself should work
        assert!(true); // Basic test to ensure CLI structure is valid
    }
}