Rename 'integration' to 'rojo-e2e'

This commit is contained in:
Lucien Greathouse
2018-08-26 01:13:57 -07:00
parent 81a18e88ad
commit 284f423220
5 changed files with 3 additions and 3 deletions

2
rojo-e2e/.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
/target/
**/*.rs.bk

4
rojo-e2e/Cargo.lock generated Normal file
View File

@@ -0,0 +1,4 @@
[[package]]
name = "rojo-e2e"
version = "0.1.0"

6
rojo-e2e/Cargo.toml Normal file
View File

@@ -0,0 +1,6 @@
[package]
name = "rojo-e2e"
version = "0.1.0"
authors = ["Lucien Greathouse <me@lpghatguy.com>"]
[dependencies]

2
rojo-e2e/README.md Normal file
View File

@@ -0,0 +1,2 @@
# Rojo End-to-End
This is a WIP test runner designed for Rojo. It will eventually start up the Rojo server and plugin and test functionality end-to-end.

32
rojo-e2e/src/main.rs Normal file
View File

@@ -0,0 +1,32 @@
use std::{
path::Path,
process::Command,
thread,
time::Duration,
};
fn main() {
let plugin_path = Path::new("../plugin");
let server_path = Path::new("../server");
let tests_path = Path::new("../tests");
let server = Command::new("cargo")
.args(&["run", "--", "serve", "../test-projects/empty"])
.current_dir(server_path)
.spawn();
thread::sleep(Duration::from_millis(1000));
// TODO: Wait for server to start responding on the right port
let test_client = Command::new("lua")
.args(&["runTest.lua", "tests/empty.lua"])
.current_dir(plugin_path)
.spawn();
thread::sleep(Duration::from_millis(300));
// TODO: Collect output from the client for success/failure?
println!("Dying!");
}